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

This commit is contained in:
Xavier Noria
2010-10-18 17:24:30 +02:00
parent 9d6917519c
commit df044ec4ac

View File

@@ -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