1
0
Fork 0
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:
Aaron Patterson 2010-12-09 15:52:12 -08:00
parent 30a0a9c23b
commit a84c34fa08

View file

@ -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