diff options
Diffstat (limited to 'lib')
-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 19796b6e72..8ff4b4d162 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_UpdateStatement o + visit o.relation + visit o.values + visit o.wheres + visit o.orders + visit o.limit + @block.call o + end + def visit_Array o o.each { |i| visit i } @block.call o |