lib/mongoid/association/referenced/syncable.rb
# Set up the syncing of many to many foreign keys.
#
# @example Set up the syncing.
#   Person._synced(association)
#
# @param [ Association ] association The association metadata.
Set up the syncing of many to many foreign keys.
Set up the syncing of many to many foreign keys .
def _synced(association)
            unless association.forced_nil_inverse?
              synced_save(association)
              synced_destroy(association)
            end
          end
def _synced ( association ) unless association . forced_nil_inverse? synced_save ( association ) synced_destroy ( association ) end end
Set up the syncing of many to many foreign keys.
Set up the syncing of many to many foreign keys .
association
<not_specific>
<not_specific>
association The association metadata.
association The association metadata .
example
Set up the syncing. Person._synced(association)
Set up the syncing . Person . _synced ( association )