From e6f12b13d7de1ab56426b86eec3a1c820df4aa41 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 16 Aug 2010 22:34:07 -0400 Subject: dot visitor supports Arel::Nodes::Equality --- lib/arel/visitors/dot.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3