Sha256: c5b27715248afcacd7b4cc9636df2529773ae2ebff3783e7c7ed00bf93c2ffcc
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 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 @model.git_included_models.each do |nested_model| ActiveGit.configuration.logger.debug "[ActiveGit] Deleting all #{nested_model.model_name} models (nested of #{@model.model_name})" nested_model.delete_all end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_git-0.0.10 | lib/active_git/events/db_delete_all.rb |
active_git-0.0.9 | lib/active_git/events/db_delete_all.rb |