lib/acts_as_changesetable/acts/changeset.rb
# Batch synchronize will go through all of the changeables for a changeset and make sure 
# all items are up to date by calling sync_changeable!
Batch synchronize will go through all of the changeables for a changeset and make sure
all items are up to date by calling sync_changeable!
Batch synchronize will go through all of the changeables for a changeset and make sure all items are up to date by calling sync_changeable!
def batch_synchronize
      changes = self.changes
      for name in changes
        changes[name].each{|history| history.changeable.sync_changeable!}
      end
    end
def batch_synchronize changes = self . changes for name in changes changes [ name ] . each { | history | history . changeable . sync_changeable! } end end
Batch synchronize will go through all of the changeables for a changeset and make sure
all items are up to date by calling sync_changeable!
Batch synchronize will go through all of the changeables for a changeset and make sure all items are up to date by calling sync_changeable!
# The dumb way to do this, call sync_changeable! for every changeable in the list # We'll need to find a better way to scale.