Sha256: 503afb0ac5b2eefa02d693a34db0fcf10e7828caf0ced479fc8b56f30c3f59e6

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

module ActiveGit
  class DbDelete < DbEvent

    def synchronize(synchronizer)
      synchronizer.define_job do
        ::ActiveRecord::Base.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

2 entries across 2 versions & 1 rubygems

Version Path
active_git-0.0.2 lib/active_git/events/db_delete.rb
active_git-0.0.1 lib/active_git/events/db_delete.rb