123456789_123456789_123456789_123456789_123456789_

Module: Mongoid::Association::Referenced::HasAndBelongsToMany::Proxy::ClassMethods

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Extended In:
Defined in: lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb

Overview

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#embedded?false (readonly)

Returns true if the association is an embedded one. In this case always false.

Examples:

Is this association embedded?

Referenced::ManyToMany.embedded?

Returns:

  • (false)

    Always false.

[ GitHub ]

  
# File 'lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb', line 34

def embedded?
  false
end

Instance Method Details

#eager_loader(association, docs)

Get the ::Mongoid::Association::Referenced::HasAndBelongsToMany::Eager object for this type of association.

Examples:

Get the eager loader object

Parameters:

[ GitHub ]

  
# File 'lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb', line 23

def eager_loader(association, docs)
  Eager.new(association, docs)
end