From fbbe05e409c5f24ac58095426d9c729ee611df00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Sat, 27 Aug 2016 14:39:52 +0200 Subject: Add Arel::Nodes::Casted to dot visitor Adds casted node to the dot visitor with outgoing edges to val and attribute. Fixes #419 --- lib/arel/visitors/dot.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/arel/visitors/dot.rb b/lib/arel/visitors/dot.rb index ca8d2b0bd0..3faa126732 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -155,6 +155,11 @@ module Arel visit_edge o, "name" end + def visit_Arel_Nodes_Casted o + visit_edge o, 'val' + visit_edge o, 'attribute' + end + def visit_Arel_Attribute o visit_edge o, "relation" visit_edge o, "name" -- cgit v1.2.3