From a6a7c75ff486657909e20e2f48764136caa5e87e Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 8 Apr 2014 17:01:53 -0700 Subject: push reduction visitors to a reduction base class this lets our old depth first and dot visitors to work normally --- test/visitors/test_to_sql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/visitors') 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 -- cgit v1.2.3