class Mongoid::Errors::NoParent
when there is no parent set.
This error is raised when trying to persist an embedded document
def initialize(klass)
- Since: - 3.0.0
Parameters:
-
klass(Class) -- The class of the embedded document.
Other tags:
- Example: Create the new error. -
def initialize(klass) super( compose_message("no_parent", { klass: klass }) ) end