aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2013-11-03 08:38:41 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2013-11-03 08:38:41 -0800
commit00b9a446deeaaeb6e54cd3146c1bee4db468a924 (patch)
tree5d9060c8570c2600e2a295ca2799031b93f267c9
parentc59e902671ebf8443a90a2dbed08e98e1a642ebb (diff)
downloadrails-00b9a446deeaaeb6e54cd3146c1bee4db468a924.tar.gz
rails-00b9a446deeaaeb6e54cd3146c1bee4db468a924.tar.bz2
rails-00b9a446deeaaeb6e54cd3146c1bee4db468a924.zip
Ensure backwards compability after the #deep_munge extraction
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb
index aba8f66118..dd326a2ef1 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -299,6 +299,16 @@ module ActionDispatch
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)