Sha256: a3f046acd6187f39444ba1269acce4cdfdb280c3049e12a42f73e75837b91330

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 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.4 lib/active_git/events/db_delete.rb