diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2013-05-02 04:45:47 +0500 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2013-05-02 04:45:47 +0500 |
commit | b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22 (patch) | |
tree | fb2dc0c72cfb50c49fa9f2a3c91116744594d202 /actionpack/lib/action_dispatch | |
parent | f7f8b7ccfc2fe61c0834041d2e211dd9dfdfbbc8 (diff) | |
download | rails-b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22.tar.gz rails-b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22.tar.bz2 rails-b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22.zip |
use constant for encoding
Diffstat (limited to 'actionpack/lib/action_dispatch')
-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 |