Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing warning: shadowing outer local variable

  • Loading branch information...
commit 53ea940c5b7ba907f89747c6b959374f635c9a39 1 parent cbec22c
@arunagw arunagw authored
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.
Something went wrong with that request. Please try again.