Class Mongoid::Relations::Cascading::Delete
In: lib/mongoid/relations/cascading/delete.rb
Parent: Strategy

Methods

cascade  

Public Instance methods

Execute the cascading deletion for the relation if it already exists. This should be optimized in the future potentially not to load all objects from the db.

@example Perform the cascading delete.

  strategy.cascade

[Validate]