aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/request.rb
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2014-05-26 12:50:44 -0700
committerGuo Xiang Tan <tgx_world@hotmail.com>2014-05-26 12:59:02 -0700
commit223e118a3c829a76ecf1d9d7e30c2cc488e203fb (patch)
tree799d848c4355a480bb725f3cd0f5d32670fb42e7 /actionpack/lib/action_dispatch/http/request.rb
parent6c30717f8c182dc05f63779b3a9a532fb9076b05 (diff)
downloadrails-223e118a3c829a76ecf1d9d7e30c2cc488e203fb.tar.gz
rails-223e118a3c829a76ecf1d9d7e30c2cc488e203fb.tar.bz2
rails-223e118a3c829a76ecf1d9d7e30c2cc488e203fb.zip
Remove duplicated HashWithIndifferentAccess#with_indifferent_access.
Diffstat (limited to 'actionpack/lib/action_dispatch/http/request.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb
index cdb3e44b3a..bc948a6a64 100644
--- a/actionpack/lib/action_dispatch/http/request.rb
+++ b/actionpack/lib/action_dispatch/http/request.rb
@@ -280,7 +280,7 @@ module ActionDispatch
# Override Rack's GET method to support indifferent access
def GET
- @env["action_dispatch.request.query_parameters"] ||= Utils.deep_munge((normalize_encode_params(super) || {}))
+ @env["action_dispatch.request.query_parameters"] ||= Utils.deep_munge(normalize_encode_params(super || {}))
rescue TypeError => e
raise ActionController::BadRequest.new(:query, e)
end
@@ -288,7 +288,7 @@ module ActionDispatch
# Override Rack's POST method to support indifferent access
def POST
- @env["action_dispatch.request.request_parameters"] ||= Utils.deep_munge((normalize_encode_params(super) || {}))
+ @env["action_dispatch.request.request_parameters"] ||= Utils.deep_munge(normalize_encode_params(super || {}))
rescue TypeError => e
raise ActionController::BadRequest.new(:request, e)
end