1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

renaming froms to from

This commit is contained in:
Aaron Patterson 2010-12-07 15:00:00 -08:00
parent 79657a3512
commit dfc66f4421

View file

@ -66,8 +66,8 @@ module Arel
# FIXME: this is a hack to support # FIXME: this is a hack to support
# test_with_two_tables_in_from_without_getting_double_quoted # test_with_two_tables_in_from_without_getting_double_quoted
# from the AR tests. # from the AR tests.
if @ctx.froms if @ctx.from
source = @ctx.froms source = @ctx.from
if Nodes::SqlLiteral === table && Nodes::Join === source if Nodes::SqlLiteral === table && Nodes::Join === source
source.left = table source.left = table
@ -75,7 +75,7 @@ module Arel
end end
end end
@ctx.froms = table @ctx.from = table
self self
end end