1
0
Fork 0
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:
Aaron Patterson 2014-03-25 10:01:44 -07:00
parent 6d47c4cae5
commit 2fd0009109
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ module Arel
end
def limit
@ast.limit && @ast.limit.expr
@ast.limit && @ast.limit.expr.expr
end
alias :taken :limit

View file

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