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