instance method
purge
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
purge()
Directly purges the attachment (i.e. destroys the blob and attachment and deletes the file on the service).
Source
# File activestorage/lib/active_storage/attached/one.rb, line 59
def purge
if attached?
attachment.purge
write_attachment nil
end
end
Defined in activestorage/lib/active_storage/attached/one.rb line 59
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Attached::One