Module: Mongoid::Association::Embedded::EmbedsMany::Proxy::ClassMethods
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Extended In:
| |
Defined in: | lib/mongoid/association/embedded/embeds_many/proxy.rb |
Overview
Class-level methods for the ::Mongoid::Association::Embedded::EmbedsMany::Proxy
class.
Instance Attribute Summary
-
#embedded? ⇒ true
readonly
Returns true if the association is an embedded one.
Instance Method Summary
-
#eager_loader(associations, docs) ⇒ Mongoid::Association::Embedded::Eager
Returns the eager loader for this association.
-
#foreign_key_suffix ⇒ nil
Returns the suffix of the foreign key field, either “_id” or “_ids”.
Instance Attribute Details
#embedded? ⇒ true
(readonly)
Returns true if the association is an embedded one. In this case always true.
# File 'lib/mongoid/association/embedded/embeds_many/proxy.rb', line 40
def true end
Instance Method Details
#eager_loader(associations, docs) ⇒ Mongoid::Association::Embedded::Eager
Returns the eager loader for this association.
#foreign_key_suffix ⇒ nil
Returns the suffix of the foreign key field, either “_id” or “_ids”.
# File 'lib/mongoid/association/embedded/embeds_many/proxy.rb', line 50
def foreign_key_suffix nil end