diff options
author | George Claghorn <george@basecamp.com> | 2018-07-18 21:56:36 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-07-18 21:59:31 -0400 |
commit | ac6e6c6b99e7c9732dc280a75a6136d37e9b9730 (patch) | |
tree | cd72c7ad6369a4b38cacca0412443d73175b17fe /activestorage/app | |
parent | 08813dd62a0ae4061774511dfc8a7fc0384d6528 (diff) | |
download | rails-ac6e6c6b99e7c9732dc280a75a6136d37e9b9730.tar.gz rails-ac6e6c6b99e7c9732dc280a75a6136d37e9b9730.tar.bz2 rails-ac6e6c6b99e7c9732dc280a75a6136d37e9b9730.zip |
Clarify the ActiveStorage::Attachment#purge and #purge_later docs
Link to the corresponding ActiveStorage::Blob methods, whose docs more accurately describe their effects. [ci skip]
Diffstat (limited to 'activestorage/app')
-rw-r--r-- | activestorage/app/models/active_storage/attachment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/app/models/active_storage/attachment.rb b/activestorage/app/models/active_storage/attachment.rb index bb80799044..5d36990fb9 100644 --- a/activestorage/app/models/active_storage/attachment.rb +++ b/activestorage/app/models/active_storage/attachment.rb @@ -17,13 +17,13 @@ class ActiveStorage::Attachment < ActiveRecord::Base after_create_commit :analyze_blob_later, :identify_blob after_destroy_commit :purge_dependent_blob_later - # Synchronously purges the blob (deletes it from the configured service) and deletes the attachment. + # Synchronously deletes the attachment and {purges the blob}[rdoc-ref:ActiveStorage::Blob#purge]. def purge blob.purge delete end - # Deletes the attachment and queues a background job to purge the blob (delete it from the configured service). + # Deletes the attachment and {enqueues a background job}[rdoc-ref:ActiveStorage::Blob#purge_later] to purge the blob. def purge_later blob.purge_later delete |