Class: BackupStorage::PurgeJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/backup_storage/purge_job.rb

Overview

Provides delayed purging of attachments or blobs using their ‘#purge_later` method.

Instance Method Summary collapse

Instance Method Details

#perform(attachment_or_blob) ⇒ Object



6
7
8
# File 'app/jobs/backup_storage/purge_job.rb', line 6

def perform(attachment_or_blob)
  attachment_or_blob.purge
end