aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-01-31 04:22:04 -0800
committerSantiago Pastorino <santiago@wyeworks.com>2012-01-31 04:22:04 -0800
commit9a1724073aa9bb5c5e6253aa3f010517fb5007f8 (patch)
tree58740fe9610b953d53b82b3715182a60000344e1 /activerecord/lib
parent81f6bcb6d5d724a81976f777306b6837c5e713f1 (diff)
parentae0b4728ea9cb479dd467dbc9461416b5f6c7224 (diff)
downloadrails-9a1724073aa9bb5c5e6253aa3f010517fb5007f8.tar.gz
rails-9a1724073aa9bb5c5e6253aa3f010517fb5007f8.tar.bz2
rails-9a1724073aa9bb5c5e6253aa3f010517fb5007f8.zip
Merge pull request #4788 from arunagw/warning_remove_shadowing_var
warning removed: shadowing outer local variable - klass
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/dynamic_finder_match.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/dynamic_finder_match.rb b/activerecord/lib/active_record/dynamic_finder_match.rb
index e266fbb2e9..38dbbef5fc 100644
--- a/activerecord/lib/active_record/dynamic_finder_match.rb
+++ b/activerecord/lib/active_record/dynamic_finder_match.rb
@@ -7,8 +7,8 @@ module ActiveRecord
class DynamicFinderMatch
def self.match(method)
method = method.to_s
- klass = [FindBy, FindByBang, FindOrInitializeCreateBy].find do |klass|
- klass.matches?(method)
+ klass = [FindBy, FindByBang, FindOrInitializeCreateBy].find do |_klass|
+ _klass.matches?(method)
end
klass.new(method) if klass
end