module LoggableActivity::Sanitizer
This module is responsible for sanitizing activities. When an encryption keys deleted_at field is set, the key is deleted.
Public Class Methods
run()
click to toggle source
# File lib/loggable_activity/sanitizer.rb, line 7 def self.run ::LoggableActivity::EncryptionKey.where('delete_at < ?', DateTime.now).find_in_batches do |batch| batch.each(&:delete) end end