Module: MongoModel::DocumentExtensions::Callbacks

Extended by:
ActiveSupport::Concern
Included in:
MongoModel::Document
Defined in:
lib/mongomodel/document/callbacks.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) destroy_with_callbacks

:nodoc:



39
40
41
42
43
# File 'lib/mongomodel/document/callbacks.rb', line 39

def destroy_with_callbacks #:nodoc:
  run_callbacks_with_embedded(:destroy) do
    destroy_without_callbacks
  end
end