Browse files

Removing warning: shadowing outer local variable

  • Loading branch information...
1 parent cbec22c commit 53ea940c5b7ba907f89747c6b959374f635c9a39 @arunagw arunagw committed Jan 20, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/metal/strong_parameters.rb
View
6 actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -382,9 +382,9 @@ def permitted_scalar_filter(params, key)
params[key] = self[key]
end
- keys.grep(/\A#{Regexp.escape(key)}\(\d+[if]?\)\z/).each do |key|
- if permitted_scalar?(self[key])
- params[key] = self[key]
+ keys.grep(/\A#{Regexp.escape(key)}\(\d+[if]?\)\z/).each do |k|
+ if permitted_scalar?(self[k])
+ params[k] = self[k]
end
end
end

0 comments on commit 53ea940

Please sign in to comment.