aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2012-10-12 18:53:15 +0530
committerArun Agrawal <arunagw@gmail.com>2012-10-12 18:53:15 +0530
commit11f01bee6574fe2580b408fc067fd564fd846af3 (patch)
tree6959b799cafd12372f8f53d1234607f0475e99cf /actionpack
parentf1765019ce9b6292f2264b4601dad5daaffe3a89 (diff)
downloadrails-11f01bee6574fe2580b408fc067fd564fd846af3.tar.gz
rails-11f01bee6574fe2580b408fc067fd564fd846af3.tar.bz2
rails-11f01bee6574fe2580b408fc067fd564fd846af3.zip
warning removed: shadowing outer local variable - value
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/strong_parameters.rb4
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 c42b3dddc9..6f46954266 100644
--- a/actionpack/lib/action_controller/metal/strong_parameters.rb
+++ b/actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -200,8 +200,8 @@ module ActionController
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