class Arel::DeleteManager
Public Class Methods
Source
# File lib/arel/delete_manager.rb, line 4 def initialize super @ast = Nodes::DeleteStatement.new @ctx = @ast end
Calls superclass method
Arel::TreeManager::new
Public Instance Methods
Source
# File lib/arel/delete_manager.rb, line 10 def from relation @ast.relation = relation self end
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
Source
# File lib/arel/delete_manager.rb, line 20 def wheres= list @ast.wheres = list end