Parent

Methods

Class/Module Index [+]

Quicksearch

Mongoid::Errors::EagerLoad

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

Attributes

name[R]

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 relation.

@since 2.2.0

# File lib/mongoid/errors/eager_load.rb, line 18
def initialize(name)
  @name = name
  super(translate("eager_load", { :name => name }))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.