diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2013-10-24 14:15:50 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2013-10-24 14:15:50 -0200 |
commit | 9e53488b1d8d535182a989bd38fbb171aebbeef5 (patch) | |
tree | 989660ecc5486a623b23b5dd6ba5c5cfee0cba64 /lib | |
parent | 0c605cdee894f4c1eddde31ea38ae6bec74fd858 (diff) | |
download | rails-9e53488b1d8d535182a989bd38fbb171aebbeef5.tar.gz rails-9e53488b1d8d535182a989bd38fbb171aebbeef5.tar.bz2 rails-9e53488b1d8d535182a989bd38fbb171aebbeef5.zip |
Fix warning of shadowing variable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/visitors/visitor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/visitors/visitor.rb b/lib/arel/visitors/visitor.rb index 33ec5eafb4..420549b2aa 100644 --- a/lib/arel/visitors/visitor.rb +++ b/lib/arel/visitors/visitor.rb @@ -9,8 +9,8 @@ module Arel DISPATCH = Hash.new do |hash, visitor_class| hash[visitor_class] = - Hash.new do |hash, node_class| - hash[node_class] = "visit_#{(node_class.name || '').gsub('::', '_')}" + Hash.new do |method_hash, node_class| + method_hash[node_class] = "visit_#{(node_class.name || '').gsub('::', '_')}" end end |