Class | Mongoid::Relations::Bindings::Referenced::In |
In: |
lib/mongoid/relations/bindings/referenced/in.rb
|
Parent: | Binding |
Binding class for all referenced_in relations.
Binds the base object to the inverse of the relation. This is so we are referenced to the actual objects themselves on both sides.
This case sets the metadata on the inverse object as well as the document itself.
@example Bind the documents.
game.person.bind(:continue => true) game.person = Person.new
@since 2.0.0.rc.1