123456789_123456789_123456789_123456789_123456789_

Class: Mongoid::Association::EagerLoad::Inclusion Private

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: lib/mongoid/association/eager_load/inclusion.rb

Overview

Something an eager load contributes to the pipeline, in the role it plays while the pipeline is built. A root is asked to contribute and the whole tree follows by recursion. AssociationInclusion stands for a single association; DiscriminatedInclusion stands for a name several subclasses share.

Instance Method Summary

Instance Method Details

#contribute(destination, chain)

Add this inclusion's stages to the destination.

Parameters:

  • destination (Array<Hash>)

    The pipeline (or sub-pipeline) the stages are appended to.

  • chain (Array<Mongoid::Association::Relatable>)

    The embedded path accumulated from the ancestors above this inclusion (empty at the top).

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'lib/mongoid/association/eager_load/inclusion.rb', line 20

def contribute(destination, chain)
  raise NotImplementedError
end