Class: Mongoid::Association::EagerLoad::DeferredInclusion Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
AssociationInclusion,
Inclusion
|
|
|
Instance Chain:
self,
AssociationInclusion,
Inclusion
|
|
| Inherits: |
Mongoid::Association::EagerLoad::AssociationInclusion
|
| Defined in: | lib/mongoid/association/eager_load/inclusion.rb |
Overview
A polymorphic inclusion: its target collection varies per document, so it
can't be a $lookup. It adds nothing here; PolymorphicPreloader resolves it
after the roots are materialized.
Class Method Summary
- .for?(association) ⇒ true | false Internal use only
AssociationInclusion - Inherited
Instance Attribute Summary
AssociationInclusion - Inherited
Instance Method Summary
-
#contribute(destination, chain)
Internal use only
Add nothing;
PolymorphicPreloaderresolves the association after the roots are materialized.
Inclusion - Inherited
| #contribute | Add this inclusion's stages to the destination. |
Constructor Details
This class inherits a constructor from Mongoid::Association::EagerLoad::AssociationInclusion
Class Method Details
.for?(association) ⇒ true | false
# File 'lib/mongoid/association/eager_load/inclusion.rb', line 159
def for?(association) association.polymorphic? end
Instance Method Details
#contribute(destination, chain)
Add nothing; PolymorphicPreloader resolves the association after the
roots are materialized.
# File 'lib/mongoid/association/eager_load/inclusion.rb', line 169
def contribute(destination, chain); end