diff options
author | Xavier Noria <fxn@hashref.com> | 2010-10-18 17:24:30 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-10-18 17:24:30 +0200 |
commit | df044ec4ace106b05a1db40a9c14addeafe0dd7a (patch) | |
tree | 801cc6e8966cca826173abc08aa5b6f5442d6fd7 /activesupport/lib/active_support/core_ext/string/output_safety.rb | |
parent | 9d6917519c0070ff6225201b7071fa4ee42d3940 (diff) | |
download | rails-df044ec4ace106b05a1db40a9c14addeafe0dd7a.tar.gz rails-df044ec4ace106b05a1db40a9c14addeafe0dd7a.tar.bz2 rails-df044ec4ace106b05a1db40a9c14addeafe0dd7a.zip |
explains why ERB::Util#h is removed before being re-aliased
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/output_safety.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index b53929c2a3..af7539881a 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -24,6 +24,7 @@ class ERB end end + # Aliasing twice issues a warning "dicarding old...". Remove first to avoid it. remove_method(:h) alias h html_escape |