instance method
purge_later
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
purge_later()
Deletes the attachment and enqueues a background job to purge the blob.
Source
# File activestorage/app/models/active_storage/attachment.rb, line 60
def purge_later
transaction do
delete
record.touch if record&.persisted?
end
blob&.purge_later
end
Defined in activestorage/app/models/active_storage/attachment.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Attachment