mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
further reducing dependence on custom_joins
This commit is contained in:
@@ -299,6 +299,8 @@ module ActiveRecord
|
||||
if relation.froms.length > 0 && ast
|
||||
ast.left = relation.froms.first
|
||||
relation.from ast
|
||||
elsif relation.froms.length == 0 && ast
|
||||
relation.from(ast)
|
||||
else
|
||||
relation.join(custom_joins)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user