diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 17:01:53 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 17:01:53 -0700 |
commit | a6a7c75ff486657909e20e2f48764136caa5e87e (patch) | |
tree | 9fce597cf0536bf94cdeeffe837091083de85fbf /test/visitors | |
parent | 6ae60fd2cbbf836dac01f6d2d56c38fb9deb225a (diff) | |
download | rails-a6a7c75ff486657909e20e2f48764136caa5e87e.tar.gz rails-a6a7c75ff486657909e20e2f48764136caa5e87e.tar.bz2 rails-a6a7c75ff486657909e20e2f48764136caa5e87e.zip |
push reduction visitors to a reduction base class
this lets our old depth first and dot visitors to work normally
Diffstat (limited to 'test/visitors')
-rw-r--r-- | test/visitors/test_to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index b6d91046b8..4ed1f225ce 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -23,7 +23,7 @@ module Arel it 'can define a dispatch method' do visited = false - viz = Class.new(Arel::Visitors::Visitor) { + viz = Class.new(Arel::Visitors::Reduce) { define_method(:hello) do |node, c| visited = true end |