Module: Mongoid::Association::Referenced::Syncable::ClassMethods
- Defined in:
- lib/mongoid/association/referenced/syncable.rb
Instance Method Summary collapse
-
#_synced(association) ⇒ Object
Set up the syncing of many to many foreign keys.
Instance Method Details
#_synced(association) ⇒ Object
Set up the syncing of many to many foreign keys.
113 114 115 116 117 118 |
# File 'lib/mongoid/association/referenced/syncable.rb', line 113 def _synced(association) unless association.forced_nil_inverse? synced_save(association) synced_destroy(association) end end |