Permalink
Browse files

explains why ERB::Util#h is removed before being re-aliased

  • Loading branch information...
fxn committed Oct 18, 2010
1 parent 9d69175 commit df044ec4ace106b05a1db40a9c14addeafe0dd7a
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -24,6 +24,7 @@ def html_escape(s)
end
end
+ # Aliasing twice issues a warning "dicarding old...". Remove first to avoid it.
remove_method(:h)
alias h html_escape

0 comments on commit df044ec

Please sign in to comment.