pass the join type to the join_constraints method
This commit is contained in:
parent
2549f6d8ee
commit
bae5e02cf3
@ -165,7 +165,8 @@ def instantiate(result_set, aliases)
|
||||
|
||||
def make_joins(node)
|
||||
node.children.flat_map { |child|
|
||||
child.join_constraints(node, child.tables, child.reflection.chain)
|
||||
chain = child.reflection.chain
|
||||
child.join_constraints(node, child.join_type, child.tables, chain)
|
||||
.concat make_joins(child)
|
||||
}
|
||||
end
|
||||
|
@ -25,7 +25,7 @@ def match?(other)
|
||||
super && reflection == other.reflection
|
||||
end
|
||||
|
||||
def join_constraints(parent, tables, chain)
|
||||
def join_constraints(parent, join_type, tables, chain)
|
||||
joins = []
|
||||
tables = tables.reverse
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user