class Mongoid::Errors::EagerLoad

This error is raised when attempting to eager load a many to many association.

@deprecated No longer used by Mongoid per MONGOID-4841.

Public Class Methods

new(name) click to toggle source

Create the new eager load error.

@example Create the new eager load error.

EagerLoad.new(:preferences)

@param [ Symbol ] name The name of the association.

@since 2.2.0

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