mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
take in to account quoted and translated values
This commit is contained in:
parent
6d47c4cae5
commit
2fd0009109
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ module Arel
|
|||
end
|
||||
|
||||
def limit
|
||||
@ast.limit && @ast.limit.expr
|
||||
@ast.limit && @ast.limit.expr.expr
|
||||
end
|
||||
alias :taken :limit
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ module Arel
|
|||
lower = @factory.lower :one
|
||||
assert_instance_of Nodes::NamedFunction, lower
|
||||
assert_equal 'LOWER', lower.name
|
||||
assert_equal [:one], lower.expressions
|
||||
assert_equal [:one], lower.expressions.map(&:expr)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue