diff options
author | Mike Dalessio <mike@csa.net> | 2010-08-16 22:34:07 -0400 |
---|---|---|
committer | Mike Dalessio <mike@csa.net> | 2010-08-16 22:34:07 -0400 |
commit | e6f12b13d7de1ab56426b86eec3a1c820df4aa41 (patch) | |
tree | 5c4bca0e6aaeb4305a2729e3b2d48f879a6e5130 /lib/arel/visitors | |
parent | 57d65bde636855872dc29a9d778a38109f4e34ee (diff) | |
download | rails-e6f12b13d7de1ab56426b86eec3a1c820df4aa41.tar.gz rails-e6f12b13d7de1ab56426b86eec3a1c820df4aa41.tar.bz2 rails-e6f12b13d7de1ab56426b86eec3a1c820df4aa41.zip |
dot visitor supports Arel::Nodes::Equality
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/dot.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/visitors/dot.rb b/lib/arel/visitors/dot.rb index 9927b03969..54551f06f7 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -58,6 +58,11 @@ module Arel alias :visit_Arel_Attributes_Time :visit_Arel_Attribute alias :visit_Arel_Attributes_Boolean :visit_Arel_Attribute + def visit_Arel_Nodes_Equality o + visit_edge o, "left" + visit_edge o, "right" + end + def visit_String o @node_stack.last.fields << o end |