Class | Mongoid::Relations::Bindings::Referenced::ManyToMany |
In: |
lib/mongoid/relations/bindings/referenced/many_to_many.rb
|
Parent: | Binding |
Binding class for all references_and_referenced_in_many relations.
Binds a single document with the inverse relation. Used specifically when appending to the proxy.
@example Bind one document.
person.preferences.bind_one(preference)
@param [ Document ] doc The single document to bind.
@since 2.0.0.rc.1