instance method
purge_later
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
purge_later()
Enqueues an ActiveStorage::PurgeJob job that’ll call purge. This is the recommended way to purge blobs when the call needs to be made from a transaction, a callback, or any other real-time scenario.
Source
# File activestorage/app/models/active_storage/blob.rb, line 188
def purge_later
ActiveStorage::PurgeJob.perform_later(self)
end
Defined in activestorage/app/models/active_storage/blob.rb line 188
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob