diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-06-18 13:49:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-06-18 13:49:58 -0700 |
commit | 2d19f7a9656336849e2241ff8731e52806eec27b (patch) | |
tree | b312970582db90e19282e17c7b5c0aed19c2611a | |
parent | 7442623100f5ecdd73fd8f68376431762380f4e5 (diff) | |
parent | 96692228918fe5a6891ad16288a6c913c4a62496 (diff) | |
download | rails-2d19f7a9656336849e2241ff8731e52806eec27b.tar.gz rails-2d19f7a9656336849e2241ff8731e52806eec27b.tar.bz2 rails-2d19f7a9656336849e2241ff8731e52806eec27b.zip |
Merge pull request #370 from arthurnn/dont_quote_limit
Dont need to quote limit
-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 |