module Mongoid::Association::Referenced::HasAndBelongsToMany::Proxy::ClassMethods
class-level methods for HasAndBelongsToMany::Proxy
Public Instance Methods
eager_loader(association, docs)
click to toggle source
Get the Eager
object for this type of association.
@example Get the eager loader object
@param [ Mongoid::Association::Relatable
] association The association metadata. @param [ Array<Document> ] docs The array of documents.
# File lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb, line 23 def eager_loader(association, docs) Eager.new(association, docs) end
embedded?()
click to toggle source
Returns true if the association is an embedded one. In this case always false.
@example Is this association embedded?
Referenced::ManyToMany.embedded?
@return [ false ] Always false.
# File lib/mongoid/association/referenced/has_and_belongs_to_many/proxy.rb, line 34 def embedded? false end