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

Dont need to quote limit

This commit is contained in:
Arthur Neves 2015-06-18 22:08:04 +02:00
parent 7442623100
commit 9669222891
No known key found for this signature in database
GPG key ID: 04A390FB1E433E17

View file

@ -19,7 +19,7 @@ module Arel
end
def limit
@ast.limit && @ast.limit.expr.expr
@ast.limit && @ast.limit.expr
end
alias :taken :limit
@ -216,8 +216,8 @@ module Arel
def take limit
if limit
@ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit))
@ctx.top = Nodes::Top.new(Nodes.build_quoted(limit))
@ast.limit = Nodes::Limit.new(limit)
@ctx.top = Nodes::Top.new(limit)
else
@ast.limit = nil
@ctx.top = nil