From 4b91cbc688b2fdc09a4a67a018c6bcb773934ea1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 29 Nov 2010 14:26:53 -0800 Subject: adding select statement support --- lib/arel/visitors/depth_first.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/arel/visitors') diff --git a/lib/arel/visitors/depth_first.rb b/lib/arel/visitors/depth_first.rb index 5c89ef96b3..534f9edaf5 100644 --- a/lib/arel/visitors/depth_first.rb +++ b/lib/arel/visitors/depth_first.rb @@ -70,6 +70,15 @@ module Arel @block.call o end + def visit_Arel_Nodes_SelectStatement o + visit o.cores + visit o.orders + visit o.limit + visit o.lock + visit o.offset + @block.call o + end + def visit_Arel_Nodes_UpdateStatement o visit o.relation visit o.values -- cgit v1.2.3