From 00b9a446deeaaeb6e54cd3146c1bee4db468a924 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 3 Nov 2013 08:38:41 -0800 Subject: Ensure backwards compability after the #deep_munge extraction --- actionpack/lib/action_dispatch/http/request.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack') 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) -- cgit v1.2.3