1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #10407 from NARKOZ/encoding-constant

Use constant for encoding
This commit is contained in:
Carlos Antonio da Silva 2013-05-01 17:20:15 -07:00
commit 8a7c2e1cdf

View file

@ -65,7 +65,7 @@ module ActionDispatch
new_hash = {}
params.each do |k, v|
new_key = k.is_a?(String) ? k.dup.force_encoding("UTF-8").encode! : k
new_key = k.is_a?(String) ? k.dup.force_encoding(Encoding::UTF_8).encode! : k
new_hash[new_key] =
case v
when Hash