mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Change deep_munge call to avoid deprecation warning
This commit is contained in:
parent
0b35a0d762
commit
ce148025f2
1 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ module ActionDispatch
|
|||
|
||||
# Override Rack's GET method to support indifferent access
|
||||
def GET
|
||||
@env["action_dispatch.request.query_parameters"] ||= 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
|
||||
|
@ -279,7 +279,7 @@ module ActionDispatch
|
|||
|
||||
# Override Rack's POST method to support indifferent access
|
||||
def POST
|
||||
@env["action_dispatch.request.request_parameters"] ||= 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
|
||||
|
|
Loading…
Reference in a new issue