diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-05-01 17:20:15 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-05-01 17:20:15 -0700 |
commit | 8a7c2e1cdff094da549be2b4ee3c04aec1c63d5a (patch) | |
tree | bda4c9370fdba24650d9418a248fdf9eb19f4757 /actionpack | |
parent | 09ac1776abc0d3482f491f2d49f47bcb3d9a4ad7 (diff) | |
parent | b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22 (diff) | |
download | rails-8a7c2e1cdff094da549be2b4ee3c04aec1c63d5a.tar.gz rails-8a7c2e1cdff094da549be2b4ee3c04aec1c63d5a.tar.bz2 rails-8a7c2e1cdff094da549be2b4ee3c04aec1c63d5a.zip |
Merge pull request #10407 from NARKOZ/encoding-constant
Use constant for encoding
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/parameters.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/parameters.rb b/actionpack/lib/action_dispatch/http/parameters.rb index 246d9c121a..20c24ddd85 100644 --- a/actionpack/lib/action_dispatch/http/parameters.rb +++ b/actionpack/lib/action_dispatch/http/parameters.rb @@ -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 |