Sha256: a6cb7f58377637b8b3510686d56a96afd57ab588938e6152af9e4bbe539ca4fb

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

module ActiveGit
  class DbDelete < DbEvent

    def synchronize(synchronizer)
      synchronizer.define_job do
        ActiveGit.configuration.logger.debug "[ActiveGit] Deleting #{model.model_name} #{model_id}"
        record = model.find_by_id(model_id)
        record.delete if record
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_git-0.0.3 lib/active_git/events/db_delete.rb