Skip to content
Browse files

warning removed: shadowing outer local variable - value

  • Loading branch information...
1 parent f176501 commit 11f01bee6574fe2580b408fc067fd564fd846af3 @arunagw arunagw committed Oct 12, 2012
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

0 comments on commit 11f01be

Please sign in to comment.
Something went wrong with that request. Please try again.