diff options
author | Oliver Günther <mail@oliverguenther.de> | 2016-08-27 14:39:52 +0200 |
---|---|---|
committer | Oliver Günther <mail@oliverguenther.de> | 2016-08-27 14:39:52 +0200 |
commit | fbbe05e409c5f24ac58095426d9c729ee611df00 (patch) | |
tree | 13dc41710ff1f0fe354e6013fd6b8b1723803cfd /lib | |
parent | 09827f361d4bc73e6ff157d9feb74a465e4e4cdd (diff) | |
download | rails-fbbe05e409c5f24ac58095426d9c729ee611df00.tar.gz rails-fbbe05e409c5f24ac58095426d9c729ee611df00.tar.bz2 rails-fbbe05e409c5f24ac58095426d9c729ee611df00.zip |
Add Arel::Nodes::Casted to dot visitor
Adds casted node to the dot visitor with outgoing edges to val and
attribute.
Fixes #419
Diffstat (limited to 'lib')
-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 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" |