Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing warning: shadowing outer local variable

  • Loading branch information...
commit 53ea940c5b7ba907f89747c6b959374f635c9a39 1 parent cbec22c
Arun Agrawal arunagw authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/metal/strong_parameters.rb
6 actionpack/lib/action_controller/metal/strong_parameters.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.