class Mongoid::Errors::DocumentNotDestroyed
@since 4.0.0
return false.
Raised when attempting to destroy a document that had destory callbacks
def initialize(id, klass)
- Since: - 4.0.0
Parameters:
-
klass(Class) -- The document class. -
id(Object) -- The document id.
Other tags:
- Example: Create the error. -
def initialize(id, klass) super(compose_message("document_not_destroyed", { id: id.inspect, klass: klass })) end