Class: Mongoid::Orderable::Handlers::DocumentEmbedded

Inherits:
Document
  • Object
show all
Defined in:
lib/mongoid/orderable/handlers/document_embedded.rb

Instance Attribute Summary

Attributes inherited from Base

#doc

Instance Method Summary collapse

Methods inherited from Document

#after_create, #after_update, #before_create, #before_update

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mongoid::Orderable::Handlers::Base

Instance Method Details

#after_destroyObject



7
8
9
10
# File 'lib/mongoid/orderable/handlers/document_embedded.rb', line 7

def after_destroy
  return if doc._root.destroyed?
  super
end