Exception: Mongoid::Errors::InvalidEstimatedCountScoping
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidEstimatedCountScoping
- Defined in:
- lib/mongoid/errors/invalid_estimated_count_scoping.rb
Overview
This error is raised when trying to call estimated_count on a model with a default scope.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(class_name) ⇒ InvalidEstimatedCountScoping
constructor
private
Creates the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(class_name) ⇒ InvalidEstimatedCountScoping
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.
Creates the exception.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/invalid_estimated_count_scoping.rb', line 17 def initialize(class_name) super( ( "invalid_estimated_count_scoping", { class_name: class_name } ) ) end |