提交 00b9a446 编写于 作者: D David Heinemeier Hansson

Ensure backwards compability after the #deep_munge extraction

上级 c59e9026
......@@ -299,6 +299,16 @@ def local?
LOCALHOST =~ remote_addr && LOCALHOST =~ remote_ip
end
# Extracted into ActionDispatch::Request::Utils.deep_munge, but kept here for backwards compatibility.
def deep_munge(hash)
ActiveSupport::Deprecation.warn(
"This method has been extracted into ActionDispatch::Request::Utils.deep_munge. Please start using that instead."
)
Utils.deep_munge(hash)
end
protected
def parse_query(qs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册