Exception: Mongoid::Errors::EagerLoad Deprecated

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-7.3/lib/mongoid/errors/eager_load.rb

Overview

Deprecated.

No longer used by Mongoid per MONGOID-4841.

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

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initialize(name) ⇒ EagerLoad

Create the new eager load error.

Examples:

Create the new eager load error.

EagerLoad.new(:preferences)

Parameters:

  • name (Symbol)

    The name of the association.

Since:

  • 2.2.0



21
22
23
# File 'build/mongoid-7.3/lib/mongoid/errors/eager_load.rb', line 21

def initialize(name)
  super(compose_message("eager_load", { name: name }))
end