Module: Mongoid::Association::Referenced::HasMany::Proxy::ClassMethods

Included in:
Mongoid::Association::Referenced::HasMany::Proxy
Defined in:
lib/mongoid/association/referenced/has_many/proxy.rb

Overview

class-level methods for HasMany::Proxy

Instance Method Summary collapse

Instance Method Details

#eager_loader(association, docs) ⇒ Object



21
22
23
# File 'lib/mongoid/association/referenced/has_many/proxy.rb', line 21

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

#embedded?false

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

Examples:

Is this association embedded?

Referenced::Many.embedded?

Returns:

  • (false)

    Always false.



32
33
34
# File 'lib/mongoid/association/referenced/has_many/proxy.rb', line 32

def embedded?
  false
end