Skip to content
This repository
Browse code

Ensure backwards compability after the #deep_munge extraction

  • Loading branch information...
commit 00b9a446deeaaeb6e54cd3146c1bee4db468a924 1 parent c59e902
David Heinemeier Hansson dhh authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 actionpack/lib/action_dispatch/http/request.rb
10 actionpack/lib/action_dispatch/http/request.rb
@@ -299,6 +299,16 @@ def local?
299 299 LOCALHOST =~ remote_addr && LOCALHOST =~ remote_ip
300 300 end
301 301
  302 +
  303 + # Extracted into ActionDispatch::Request::Utils.deep_munge, but kept here for backwards compatibility.
  304 + def deep_munge(hash)
  305 + ActiveSupport::Deprecation.warn(
  306 + "This method has been extracted into ActionDispatch::Request::Utils.deep_munge. Please start using that instead."
  307 + )
  308 +
  309 + Utils.deep_munge(hash)
  310 + end
  311 +
302 312 protected
303 313
304 314 def parse_query(qs)

0 comments on commit 00b9a44

Please sign in to comment.
Something went wrong with that request. Please try again.