Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit df044ec4ace106b05a1db40a9c14addeafe0dd7a 1 parent 9d69175
@fxn fxn authored
View
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.