Class: ActiveStorage::PurgeJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/active_storage/purge_job.rb

Overview

Provides asynchronous purging of ActiveStorage::Blob records via ActiveStorage::Blob#purge_later.

Instance Method Summary collapse

Instance Method Details

#perform(blob) ⇒ Object



10
11
12
# File 'app/jobs/active_storage/purge_job.rb', line 10

def perform(blob)
  blob.purge
end