Class Mongoid::Errors::UnsavedDocument
In: lib/mongoid/errors/unsaved_document.rb
Parent: MongoidError

Raised when attempting to call create or create! through a references_many when the parent document has not been saved. This prevents the child from getting presisted and immediately being orphaned.

Methods

new  

Attributes

base  [R] 
document  [R] 

Public Class methods

[Validate]