Exception: Mongoid::Errors::Callback
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::Callback
- Defined in:
- lib/mongoid/errors/callback.rb
Overview
This error is raised when calling #save! or .create! on a model when one of the callbacks returns false.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(klass, method) ⇒ Callback
constructor
Create the new callbacks error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, method) ⇒ Callback
Create the new callbacks error.
18 19 20 21 22 |
# File 'lib/mongoid/errors/callback.rb', line 18 def initialize(klass, method) super( ("callbacks", { klass: klass, method: method }) ) end |