Exception: Mongoid::Errors::NoParent
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::NoParent
- Defined in:
- lib/mongoid/errors/no_parent.rb
Overview
This error is raised when trying to persist an embedded document when there is no parent set.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(klass) ⇒ NoParent
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass) ⇒ NoParent
Create the new error.
17 18 19 20 21 |
# File 'lib/mongoid/errors/no_parent.rb', line 17 def initialize(klass) super( ("no_parent", { klass: klass }) ) end |