Module: Mongoid::Relations::Synchronization::ClassMethods
- Defined in:
- build/mongoid-6.1/lib/mongoid/relations/synchronization.rb
Instance Method Summary collapse
-
#_synced(metadata) ⇒ Object
Set up the syncing of many to many foreign keys.
Instance Method Details
#_synced(metadata) ⇒ Object
Set up the syncing of many to many foreign keys.
113 114 115 116 117 118 |
# File 'build/mongoid-6.1/lib/mongoid/relations/synchronization.rb', line 113 def _synced() unless .forced_nil_inverse? synced_save() synced_destroy() end end |