diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-06 09:36:02 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-06 09:36:02 -0800 |
commit | 516ae526b34333073df7a9835952d5d499197fdd (patch) | |
tree | b26c83a2c6e3cad34a670e527407aa1f6d0dc2aa /lib/arel/visitors/dot.rb | |
parent | 3446b72ede5232f6cc3b87bf2a9af7cb4ac7f500 (diff) | |
download | rails-516ae526b34333073df7a9835952d5d499197fdd.tar.gz rails-516ae526b34333073df7a9835952d5d499197fdd.tar.bz2 rails-516ae526b34333073df7a9835952d5d499197fdd.zip |
adding a test for the dot visitor
Diffstat (limited to 'lib/arel/visitors/dot.rb')
-rw-r--r-- | lib/arel/visitors/dot.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/arel/visitors/dot.rb b/lib/arel/visitors/dot.rb index 2ce8b6814f..c515cbe220 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -84,9 +84,16 @@ module Arel visit_edge o, "attribute" end - def visit_Arel_Nodes_Offset o - visit_edge o, "value" + def unary o + visit_edge o, "expr" end + alias :visit_Arel_Nodes_Group :unary + alias :visit_Arel_Nodes_Grouping :unary + alias :visit_Arel_Nodes_Having :unary + alias :visit_Arel_Nodes_Not :unary + alias :visit_Arel_Nodes_Offset :unary + alias :visit_Arel_Nodes_On :unary + alias :visit_Arel_Nodes_UnqualifiedColumn :unary def visit_Arel_Nodes_InsertStatement o visit_edge o, "relation" |