class Mongoid::Errors::InvalidEstimatedCountCriteria
This error is raised when trying to call estimated_count on a filtered criteria.
Public Class Methods
new(class_name)
click to toggle source
Creates the exception.
@param [ String ] class_name The name of the criteria
class used to call estimated count.
@api private
Calls superclass method
# File lib/mongoid/errors/invalid_estimated_count_criteria.rb, line 17 def initialize(class_name) super( compose_message( "invalid_estimated_count_criteria", { class_name: class_name } ) ) end