Sha256: 1287c3190fd734f8ceff9f2d2f5e7debdf0115489323b0000ebec49249bc8f91

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

module ActiveGit
  class DbDeleteAll

    def initialize(model)
      @model = model
    end

    def synchronize(synchronizer)
      synchronizer.define_job do
        ActiveGit.configuration.logger.debug "[ActiveGit] Deleting all #{@model.model_name} models"
        @model.delete_all
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_git-0.0.8 lib/active_git/events/db_delete_all.rb
active_git-0.0.7 lib/active_git/events/db_delete_all.rb
active_git-0.0.6 lib/active_git/events/db_delete_all.rb
active_git-0.0.5 lib/active_git/events/db_delete_all.rb
active_git-0.0.4 lib/active_git/events/db_delete_all.rb