Sha256: 2b22926cc53b3621b419a007664a70b653d654fd7188e08afb3c210df7eb07f6

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

module ActiveGit
  class DbDeleteAll

    def initialize(model)
      @model = model
    end

    def synchronize(synchronizer)
      synchronizer.define_job do
        ::ActiveRecord::Base.logger.debug "[ActiveGit] Deleting all #{@model.model_name} models"
        @model.delete_all
      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_all.rb
active_git-0.0.1 lib/active_git/events/db_delete_all.rb