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