Sha256: e30d679a46eade26730fec807880b213e9d5db7479c9c48ebe956457c87eb595

Contents?: true

Size: 306 Bytes

Versions: 43

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

# Provides asynchronous purging of ActiveStorage::Blob records via ActiveStorage::Blob#purge_later.
class ActiveStorage::PurgeJob < ActiveStorage::BaseJob
  discard_on ActiveRecord::RecordNotFound

  def perform(blob)
    begin
      blob&.purge
    rescue
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
better_record-0.25.2 app/jobs/active_storage/purge_job.rb
better_record-0.25.1 app/jobs/active_storage/purge_job.rb
better_record-0.25.0 app/jobs/active_storage/purge_job.rb
better_record-0.24.4 app/jobs/active_storage/purge_job.rb
better_record-0.24.3 app/jobs/active_storage/purge_job.rb
better_record-0.23.7 app/jobs/active_storage/purge_job.rb
better_record-0.23.6 app/jobs/active_storage/purge_job.rb
better_record-0.23.5 app/jobs/active_storage/purge_job.rb
better_record-0.23.4 app/jobs/active_storage/purge_job.rb
better_record-0.23.3 app/jobs/active_storage/purge_job.rb
better_record-0.22.9 app/jobs/active_storage/purge_job.rb
better_record-0.22.8 app/jobs/active_storage/purge_job.rb
better_record-0.22.7 app/jobs/active_storage/purge_job.rb
better_record-0.22.6 app/jobs/active_storage/purge_job.rb
better_record-0.22.5 app/jobs/active_storage/purge_job.rb
better_record-0.22.4 app/jobs/active_storage/purge_job.rb
better_record-0.22.3 app/jobs/active_storage/purge_job.rb
better_record-0.21.3 app/jobs/active_storage/purge_job.rb
better_record-0.22.2 app/jobs/active_storage/purge_job.rb
better_record-0.22.0 app/jobs/active_storage/purge_job.rb