Class: Flounder::Query::Delete

Inherits:
Base
  • Object
show all
Defined in:
lib/flounder/query/delete.rb

Overview

An update obtained by calling any of the chain methods on an entity.

Instance Attribute Summary

Attributes inherited from Base

#bind_values, #domain, #engine, #entity, #manager

Instance Method Summary collapse

Methods inherited from Base

#column_name_to_entity, #kick, #measure, #parse_conditions, #to_sql, #where, #with

Methods included from Helpers::Entity

#convert_to_entity, #entity_like?

Constructor Details

#initialize(domain, entity) ⇒ Delete

Returns a new instance of Delete.



8
9
10
11
12
# File 'lib/flounder/query/delete.rb', line 8

def initialize domain, entity
  super(domain, Arel::DeleteManager, entity)

  manager.from entity.table
end