Sha256: b874a6883585bd2c9ba00db61c99be7dd66b6a279eda238013bdec3047ff059c

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

module ActiveGit
  class DbUpdate < DbEvent

    def synchronize(synchronizer)
      synchronizer.bulk_insert data

      synchronizer.define_job do
        ::ActiveRecord::Base.logger.debug "[ActiveGit] Deleting #{data.class.model_name} #{data.id}"
        record = data.class.find_by_id(data.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_update.rb
active_git-0.0.1 lib/active_git/events/db_update.rb