Module: Mongoid::Relations::Synchronization::ClassMethods
- Defined in:
- lib/mongoid/relations/synchronization.rb
Overview
:nodoc:
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.
112 113 114 115 116 117 |
# File 'lib/mongoid/relations/synchronization.rb', line 112 def synced() unless .forced_nil_inverse? synced_save() synced_destroy() end end |