mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
refactor SelectManager to use the create_join factory method
This commit is contained in:
parent
30a0a9c23b
commit
a84c34fa08
1 changed files with 3 additions and 3 deletions
|
@ -89,10 +89,10 @@ module Arel
|
|||
case relation
|
||||
when String, Nodes::SqlLiteral
|
||||
raise if relation.blank?
|
||||
from Nodes::StringJoin.new(@ctx.froms, relation)
|
||||
else
|
||||
from klass.new(@ctx.froms, relation, nil)
|
||||
klass = Nodes::StringJoin
|
||||
end
|
||||
|
||||
from create_join(@ctx.froms, relation, nil, klass)
|
||||
end
|
||||
|
||||
def having expr
|
||||
|
|
Loading…
Reference in a new issue