diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-30 12:21:17 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-30 12:21:17 -0700 |
commit | 47f4d8d513ed5bb4516cd1175889fcabfb361263 (patch) | |
tree | ebeb5de3e7f00f24f3d2557f13f18b8fbe136842 /actionpack/lib/action_dispatch/middleware | |
parent | 87f3eb61c641610f758e27c6c25c92b637ad3041 (diff) | |
parent | 5438f6866efa679331e5c998ecbc5948e80cd503 (diff) | |
download | rails-47f4d8d513ed5bb4516cd1175889fcabfb361263.tar.gz rails-47f4d8d513ed5bb4516cd1175889fcabfb361263.tar.bz2 rails-47f4d8d513ed5bb4516cd1175889fcabfb361263.zip |
Merge pull request #10803 from gsamokovarov/extract-deep-munge
Extract ActionDispatch::Request#deep_munge
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/params_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb index 0fa1e9b859..fb70b60ef6 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -43,7 +43,7 @@ module ActionDispatch when :json data = ActiveSupport::JSON.decode(request.body) data = {:_json => data} unless data.is_a?(Hash) - request.deep_munge(data).with_indifferent_access + Request::Utils.deep_munge(data).with_indifferent_access else false end |