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:
parent
14ad563ee1
commit
f6d6d03297
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue