diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-06 18:07:36 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-06 18:07:36 -0700 |
commit | c14c5c16f27eb1d6769ed2dd55028187f8d121a8 (patch) | |
tree | 1e1fe14bab3e6372a53b05c50c2e31adef793d0c /lib/arel/visitors | |
parent | 87b685680669d13bf9ce879fa0037784150e8b62 (diff) | |
download | rails-c14c5c16f27eb1d6769ed2dd55028187f8d121a8.tar.gz rails-c14c5c16f27eb1d6769ed2dd55028187f8d121a8.tar.bz2 rails-c14c5c16f27eb1d6769ed2dd55028187f8d121a8.zip |
dot visitor can visit count nodes
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 277573f7fe..f66dfd8a54 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -28,6 +28,11 @@ module Arel end private + def visit_Arel_Nodes_Count o + visit_edge o, "expressions" + visit_edge o, "distinct" + end + def visit_Arel_Nodes_StringJoin o visit_edge o, "left" visit_edge o, "right" |