diff options
author | Corey Ward <corey.atx@gmail.com> | 2014-06-05 14:17:11 -0500 |
---|---|---|
committer | Corey Ward <corey.atx@gmail.com> | 2014-06-05 14:17:11 -0500 |
commit | a076b8cde99281511eab5d2118a3287b1833bb20 (patch) | |
tree | 89a4c397d92b06a5d8368202911f201d447258ec /actionpack/lib/action_controller/metal | |
parent | 141e6e8a2faf1492e5a0ccd4acb8b2cd075ee446 (diff) | |
download | rails-a076b8cde99281511eab5d2118a3287b1833bb20.tar.gz rails-a076b8cde99281511eab5d2118a3287b1833bb20.tar.bz2 rails-a076b8cde99281511eab5d2118a3287b1833bb20.zip |
Avoid misuse of underscore argument
Per convention, underscore-only argument names should be used for unused parameters.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/strong_parameters.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/strong_parameters.rb b/actionpack/lib/action_controller/metal/strong_parameters.rb index 265048a308..0236af4a19 100644 --- a/actionpack/lib/action_controller/metal/strong_parameters.rb +++ b/actionpack/lib/action_controller/metal/strong_parameters.rb @@ -158,8 +158,8 @@ module ActionController def permit! each_pair do |key, value| value = convert_hashes_to_parameters(key, value) - Array.wrap(value).each do |_| - _.permit! if _.respond_to? :permit! + Array.wrap(value).each do |v| + v.permit! if v.respond_to? :permit! end end |