diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-08-12 19:48:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-08-12 19:48:17 -0300 |
commit | ebcd02aea4c7654f6f0ab478aace0fd098806c89 (patch) | |
tree | 6bca31e04dd3274723c294c0ee85dcbcb99e61e6 /actionpack/lib | |
parent | c8f8ff724d3061b467b061a4765812e4412d1e47 (diff) | |
download | rails-ebcd02aea4c7654f6f0ab478aace0fd098806c89.tar.gz rails-ebcd02aea4c7654f6f0ab478aace0fd098806c89.tar.bz2 rails-ebcd02aea4c7654f6f0ab478aace0fd098806c89.zip |
Make private method private
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/parameters.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/actionpack/lib/action_dispatch/http/parameters.rb b/actionpack/lib/action_dispatch/http/parameters.rb index a9d1a501ab..42e80b9bf5 100644 --- a/actionpack/lib/action_dispatch/http/parameters.rb +++ b/actionpack/lib/action_dispatch/http/parameters.rb @@ -43,17 +43,6 @@ module ActionDispatch end alias :params :parameters - def set_custom_encoding(params) - action = params[:action] - params.each do |k, v| - if v.is_a?(String) && v.encoding != encoding_template(action, k) - params[k] = v.force_encoding(encoding_template(action, k)) - end - end - - params - end - def path_parameters=(parameters) #:nodoc: delete_header("action_dispatch.request.parameters") @@ -76,6 +65,17 @@ module ActionDispatch private + def set_custom_encoding(params) + action = params[:action] + params.each do |k, v| + if v.is_a?(String) && v.encoding != encoding_template(action, k) + params[k] = v.force_encoding(encoding_template(action, k)) + end + end + + params + end + def encoding_template(action, param) controller_class.encoding_for_param(action, param) end |