diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-29 14:15:58 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-29 14:15:58 -0800 |
commit | 20cd623aba6cc0c1b08b7d6fcf277633cfe236d4 (patch) | |
tree | 9a5a553b7a0438376800a2b1fac14d4568cdb69a /lib/arel/visitors | |
parent | c86c37e5f32ca76fa7aa77e62018e368dbb37a54 (diff) | |
download | rails-20cd623aba6cc0c1b08b7d6fcf277633cfe236d4.tar.gz rails-20cd623aba6cc0c1b08b7d6fcf277633cfe236d4.tar.bz2 rails-20cd623aba6cc0c1b08b7d6fcf277633cfe236d4.zip |
update statement supported
Diffstat (limited to 'lib/arel/visitors')
-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 |