提交 df044ec4 编写于 作者: X Xavier Noria

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

上级 9d691751
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册