W3cubDocs

/Ruby on Rails 7.0

class ActiveStorage::PurgeJob

Parent:
ActiveStorage::BaseJob

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

Public Instance Methods

perform(blob) Show source
# File activestorage/app/jobs/active_storage/purge_job.rb, line 10
def perform(blob)
  blob.purge
end

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.