Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7919 from arunagw/warning_removed_shadowing

warning removed: shadowing outer local variable - value
  • Loading branch information...
commit 1957687ca437a65f851db1e9c3202bd59f71ac29 2 parents 1cb7cb0 + 11f01be
@rafaelfranca rafaelfranca authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/strong_parameters.rb
View
4 actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -200,8 +200,8 @@ def permit(*filters)
case filter
when Symbol, String then
if has_key?(filter)
- value = self[filter]
- params[filter] = value unless Hash === value
+ _value = self[filter]
+ params[filter] = _value unless Hash === _value
end
keys.grep(/\A#{Regexp.escape(filter)}\(\di\)\z/) { |key| params[key] = self[key] }
when Hash then
Please sign in to comment.
Something went wrong with that request. Please try again.