We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac0e04 commit 351e726Copy full SHA for 351e726
actionpack/lib/action_dispatch/request/utils.rb
@@ -55,9 +55,11 @@ def self.normalize_encode_params(params)
55
if params.has_key?(:tempfile)
56
ActionDispatch::Http::UploadedFile.new(params)
57
else
58
- params.transform_values do |val|
59
- normalize_encode_params(val)
60
- end.with_indifferent_access
+ hwia = ActiveSupport::HashWithIndifferentAccess.new
+ params.each_pair do |key, val|
+ hwia[key] = normalize_encode_params(val)
61
+ end
62
+ hwia
63
end
64
65
params
0 commit comments