Exception: Mongoid::Errors::InvalidAroundCallback

Inherits:
MongoidError
  • Object
show all
Defined in:
lib/mongoid/errors/invalid_around_callback.rb

Overview

This error is raised when an around callback is defined by the user without a yield

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initializeInvalidAroundCallback

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the new error.



11
12
13
# File 'lib/mongoid/errors/invalid_around_callback.rb', line 11

def initialize
  super(compose_message('invalid_around_callback'))
end