Class: Mongoid::Association::Embedded::Eager
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Mongoid::Association::Eager
|
Defined in: | lib/mongoid/association/embedded/eager.rb |
Overview
Eager
class for embedded associations (embedded_in, embeds_many, embeds_one).
Class Method Summary
::Mongoid::Association::Eager
- Inherited
.new | Instantiate the eager load class. |
Instance Method Summary
-
#preload
private
::Mongoid::Association::Embedded
associations have no preload phase, since the embedded documents are loaded with the parent document.
::Mongoid::Association::Eager
- Inherited
#run | Run the preloader. |
#each_loaded_document_of_class | Retrieves the documents of the specified class, that have the foreign key included in the specified list of keys. |
#shift_association | Shift the current association metadata. |
Constructor Details
This class inherits a constructor from Mongoid::Association::Eager
Instance Method Details
#preload (private)
::Mongoid::Association::Embedded
associations have no preload phase, since the embedded documents are loaded with the parent document. This method is implemented as a no-op to represent that.
# File 'lib/mongoid/association/embedded/eager.rb', line 17
def preload end