diff options
Diffstat (limited to 'lib/arel/delete_manager.rb')
-rw-r--r-- | lib/arel/delete_manager.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/delete_manager.rb b/lib/arel/delete_manager.rb index af33c60740..20e988e01f 100644 --- a/lib/arel/delete_manager.rb +++ b/lib/arel/delete_manager.rb @@ -11,6 +11,11 @@ module Arel self end + def take limit + @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit)) if limit + self + end + def wheres= list @ast.wheres = list end |