Permalink
Browse files

Ensure backwards compability after the #deep_munge extraction

  • Loading branch information...
1 parent c59e902 commit 00b9a446deeaaeb6e54cd3146c1bee4db468a924 @dhh dhh committed Nov 3, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/lib/action_dispatch/http/request.rb
View
10 actionpack/lib/action_dispatch/http/request.rb
@@ -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)

0 comments on commit 00b9a44

Please sign in to comment.