class Mongoid::Errors::InvalidEstimatedCountCriteria

Public Class Methods

new(class_name) click to toggle source

Creates the exception raised when trying to call estimated_count on a filtered criteria.

@param [ String ] class_name The klass of the criteria used to call

estimated count.

@api private

Calls superclass method
# File lib/mongoid/errors/invalid_estimated_count_criteria.rb, line 16
def initialize(class_name)
  super(
    compose_message(
      "invalid_estimated_count_criteria",
      { class_name: class_name }
    )
  )
end