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:
parent
79657a3512
commit
dfc66f4421
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue