Method: ActiveStorage::Blob#purge_later
- Defined in:
- activestorage/app/models/active_storage/blob.rb
#purge_later ⇒ Object
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.
322 323 324 |
# File 'activestorage/app/models/active_storage/blob.rb', line 322 def purge_later ActiveStorage::PurgeJob.perform_later(self) end |