class Arel::DeleteManager

Public Class Methods

new() click to toggle source
Calls superclass method Arel::TreeManager::new
# File lib/arel/delete_manager.rb, line 4
def initialize
  super
  @ast = Nodes::DeleteStatement.new
  @ctx = @ast
end

Public Instance Methods

from(relation) click to toggle source
# File lib/arel/delete_manager.rb, line 10
def from relation
  @ast.relation = relation
  self
end
take(limit) click to toggle source
# File lib/arel/delete_manager.rb, line 15
def take limit
  @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit)) if limit
  self
end
wheres=(list) click to toggle source
# File lib/arel/delete_manager.rb, line 20
def wheres= list
  @ast.wheres = list
end