class Mongoid::Errors::InvalidEstimatedCountScoping

This error is raised when trying to call estimated_count on a model with a default scope.

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_scoping.rb, line 17
def initialize(class_name)
  super(
    compose_message(
      "invalid_estimated_count_scoping",
      { class_name: class_name }
    )
  )
end