class SyncLog

Public Class Methods

find_through_parents(id) click to toggle source
# File lib/trogdir/sync_log.rb, line 19
def self.find_through_parents(id)
  id = BSON::ObjectId.from_string(id.to_s) unless id.is_a? BSON::ObjectId
  changeset = Changeset.find_by('change_syncs.sync_logs._id' => id)
  change_sync = changeset.change_syncs.find_by('sync_logs._id' => id)
  change_sync.sync_logs.find(id)
end

Private Instance Methods

save_change_sync() click to toggle source
# File lib/trogdir/sync_log.rb, line 32
def save_change_sync
  change_sync.save! if change_sync.run_after_changed?
end
update_change_sync() click to toggle source
# File lib/trogdir/sync_log.rb, line 28
def update_change_sync
  change_sync.update_run_after
end