From df044ec4ace106b05a1db40a9c14addeafe0dd7a Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 18 Oct 2010 17:24:30 +0200 Subject: explains why ERB::Util#h is removed before being re-aliased --- activesupport/lib/active_support/core_ext/string/output_safety.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3