diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-10-07 15:40:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 15:40:46 -0400 |
commit | ea05e8e23a59421b2e2573153e1fd2a4cd4c0aca (patch) | |
tree | e0bb210015b2e3fa17577c07a1baf608b535a747 /lib | |
parent | 029041a4dcb2526224ee03efaf242fb84eb442ec (diff) | |
parent | fbbe05e409c5f24ac58095426d9c729ee611df00 (diff) | |
download | rails-ea05e8e23a59421b2e2573153e1fd2a4cd4c0aca.tar.gz rails-ea05e8e23a59421b2e2573153e1fd2a4cd4c0aca.tar.bz2 rails-ea05e8e23a59421b2e2573153e1fd2a4cd4c0aca.zip |
Merge pull request #445 from oliverguenther/fix/dot-visitor-casted-node
Add Arel::Nodes::Casted to dot visitor
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 85edc50eb7..9aa22d33f6 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -156,6 +156,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" |