From 11f01bee6574fe2580b408fc067fd564fd846af3 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Fri, 12 Oct 2012 18:53:15 +0530 Subject: warning removed: shadowing outer local variable - value --- actionpack/lib/action_controller/metal/strong_parameters.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller') 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 -- cgit v1.2.3