diff options
author | Arthur Neves <arthurnn@gmail.com> | 2015-06-18 22:08:04 +0200 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2015-06-18 22:08:04 +0200 |
commit | 96692228918fe5a6891ad16288a6c913c4a62496 (patch) | |
tree | b312970582db90e19282e17c7b5c0aed19c2611a /lib/arel | |
parent | 7442623100f5ecdd73fd8f68376431762380f4e5 (diff) | |
download | rails-96692228918fe5a6891ad16288a6c913c4a62496.tar.gz rails-96692228918fe5a6891ad16288a6c913c4a62496.tar.bz2 rails-96692228918fe5a6891ad16288a6c913c4a62496.zip |
Dont need to quote limit
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index e5fdbc887c..f7dec87ca3 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -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 |