diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-14 10:07:34 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-14 10:07:34 -0700 |
commit | 81faff66f8585553b8d332b17f8193eaa7ba15bb (patch) | |
tree | 23f830e16b770023f2f4ed9662d013644a2e82cc /lib/arel/visitors/dot.rb | |
parent | 886dff81c09dba2b2981b4387b02f026e6b16150 (diff) | |
parent | be852b9c2650b4584bdd70651b12521bbcb356d7 (diff) | |
download | rails-81faff66f8585553b8d332b17f8193eaa7ba15bb.tar.gz rails-81faff66f8585553b8d332b17f8193eaa7ba15bb.tar.bz2 rails-81faff66f8585553b8d332b17f8193eaa7ba15bb.zip |
Merge branch 'v1' of github.com:flavorjones/arel into v1
* 'v1' of github.com:flavorjones/arel:
sql visitor should emit a table alias name when visiting an attribute, if a table alias exists.
dot visitor for binary nodes
Conflicts:
lib/arel/visitors/dot.rb
Diffstat (limited to 'lib/arel/visitors/dot.rb')
-rw-r--r-- | lib/arel/visitors/dot.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/arel/visitors/dot.rb b/lib/arel/visitors/dot.rb index 55d5abe7e2..a00e25c6a6 100644 --- a/lib/arel/visitors/dot.rb +++ b/lib/arel/visitors/dot.rb @@ -92,7 +92,12 @@ module Arel visit_edge o, "left" visit_edge o, "right" end - alias :visit_Arel_Nodes_And :visit_Arel_Nodes_Equality + alias :visit_Arel_Nodes_And :visit_Arel_Nodes_Equality + alias :visit_Arel_Nodes_Or :visit_Arel_Nodes_Equality + alias :visit_Arel_Nodes_NotEqual :visit_Arel_Nodes_Equality + alias :visit_Arel_Nodes_GreaterThan :visit_Arel_Nodes_Equality + alias :visit_Arel_Nodes_GreaterThanOrEqual :visit_Arel_Nodes_Equality + alias :visit_Arel_Nodes_Assignment :visit_Arel_Nodes_Equality def visit_String o @node_stack.last.fields << o |