Module: Mongoid::Association::Referenced::HasOne::Proxy::ClassMethods
- Included in:
- Mongoid::Association::Referenced::HasOne::Proxy
- Defined in:
- lib/mongoid/association/referenced/has_one/proxy.rb
Overview
class-level methods for the HasOne::Proxy
Instance Method Summary collapse
- #eager_loader(association, docs) ⇒ Object
-
#embedded? ⇒ false
Returns true if the association is an embedded one.
Instance Method Details
#eager_loader(association, docs) ⇒ Object
16 17 18 |
# File 'lib/mongoid/association/referenced/has_one/proxy.rb', line 16 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.
27 28 29 |
# File 'lib/mongoid/association/referenced/has_one/proxy.rb', line 27 def false end |