Permalink
Browse files

Avoid misuse of underscore argument

Per convention, underscore-only argument names should be used for unused parameters.
  • Loading branch information...
1 parent 141e6e8 commit a076b8cde99281511eab5d2118a3287b1833bb20 @coreyward coreyward committed Jun 5, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -158,8 +158,8 @@ def permitted?
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

0 comments on commit a076b8c

Please sign in to comment.