Class: Dontbugme::CleanupJob
- Inherits:
-
Object
- Object
- Dontbugme::CleanupJob
- Defined in:
- lib/dontbugme/cleanup_job.rb
Class Method Summary collapse
Class Method Details
.perform ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/dontbugme/cleanup_job.rb', line 5 def self.perform store = Dontbugme.store return unless store config = Dontbugme.config retention = config.retention return unless retention cutoff = Time.now - retention store.cleanup(before: cutoff) end |