diff options
author | George Claghorn <george@basecamp.com> | 2017-08-29 00:02:59 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-08-29 00:02:59 -0400 |
commit | d3e7dc6f16d68492a159d874f72a3a229a62f844 (patch) | |
tree | 3a13a54eda3b014dd16140815e2081cfec5b0732 /activestorage/app/jobs/active_storage | |
parent | 99f75820bb5ab28a56844837911727808c566174 (diff) | |
download | rails-d3e7dc6f16d68492a159d874f72a3a229a62f844.tar.gz rails-d3e7dc6f16d68492a159d874f72a3a229a62f844.tar.bz2 rails-d3e7dc6f16d68492a159d874f72a3a229a62f844.zip |
Synchronously destroy attachments
Diffstat (limited to 'activestorage/app/jobs/active_storage')
-rw-r--r-- | activestorage/app/jobs/active_storage/purge_job.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activestorage/app/jobs/active_storage/purge_job.rb b/activestorage/app/jobs/active_storage/purge_job.rb index 369c07929d..990ab27c9f 100644 --- a/activestorage/app/jobs/active_storage/purge_job.rb +++ b/activestorage/app/jobs/active_storage/purge_job.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true -# Provides delayed purging of attachments or blobs using their +purge_later+ method. +# Provides delayed purging of ActiveStorage::Blob records via ActiveStorage::Blob#purge_later. class ActiveStorage::PurgeJob < ActiveJob::Base # FIXME: Limit this to a custom ActiveStorage error retry_on StandardError - def perform(attachment_or_blob) - attachment_or_blob.purge + def perform(blob) + blob.purge end end |