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