Class: Arel::DeleteManager
- Inherits:
-
TreeManager
- Object
- TreeManager
- Arel::DeleteManager
- Includes:
- TreeManager::StatementMethods
- Defined in:
- lib/arel/delete_manager.rb
Instance Attribute Summary
Attributes inherited from TreeManager
Instance Method Summary collapse
- #from(relation) ⇒ Object
-
#initialize ⇒ DeleteManager
constructor
A new instance of DeleteManager.
Methods included from TreeManager::StatementMethods
#key, #key=, #offset, #order, #take, #where, #wheres=
Methods inherited from TreeManager
#initialize_copy, #to_dot, #to_sql, #where
Methods included from FactoryMethods
#coalesce, #create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower
Constructor Details
#initialize ⇒ DeleteManager
Returns a new instance of DeleteManager.
7 8 9 10 11 |
# File 'lib/arel/delete_manager.rb', line 7 def initialize super @ast = Nodes::DeleteStatement.new @ctx = @ast end |
Instance Method Details
#from(relation) ⇒ Object
13 14 15 16 |
# File 'lib/arel/delete_manager.rb', line 13 def from(relation) @ast.relation = relation self end |