diff options
Diffstat (limited to 'lib/arel/visitors/depth_first.rb')
-rw-r--r-- | lib/arel/visitors/depth_first.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/arel/visitors/depth_first.rb b/lib/arel/visitors/depth_first.rb index 8ff4b4d162..5c89ef96b3 100644 --- a/lib/arel/visitors/depth_first.rb +++ b/lib/arel/visitors/depth_first.rb @@ -61,6 +61,15 @@ module Arel alias :visit_Time :terminal alias :visit_TrueClass :terminal + def visit_Arel_Nodes_SelectCore o + visit o.projections + visit o.froms + visit o.wheres + visit o.groups + visit o.having + @block.call o + end + def visit_Arel_Nodes_UpdateStatement o visit o.relation visit o.values |