1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

only visiting left side if left side is a JOIN

This commit is contained in:
Aaron Patterson 2010-09-12 16:35:13 -07:00
parent 14ad563ee1
commit f6d6d03297

View file

@ -14,7 +14,10 @@ module Arel
end
def visit_Arel_Nodes_StringJoin o
visit o.right
[
(visit o.left if Nodes::Join === o.left),
visit(o.right)
].join ' '
end
def visit_Arel_Nodes_OuterJoin o