Sha256: ae9486660c6ed3729f06527572e81ebdade51e7b2bdf89582c8a07a244811d99

Contents?: true

Size: 172 Bytes

Versions: 7

Compression:

Stored size: 172 Bytes

Contents

require 'sidekiq'

class ActiveStorage::PurgeBlobWorker
  include Sidekiq::Worker

  def perform(blob_id)
    ActiveStorage::Blob.where(id: blob_id).first&.purge
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activestorage_legacy-0.2.1 app/jobs/active_storage/purge_blob_worker.rb
activestorage_legacy-0.2.0 app/jobs/active_storage/purge_blob_worker.rb
activestorage_legacy-0.1.3 app/jobs/active_storage/purge_blob_worker.rb
activestorage_legacy-0.1.2 app/jobs/active_storage/purge_blob_worker.rb
activestorage_legacy-0.1.1 app/jobs/active_storage/purge_blob_worker.rb
activestorage_legacy-0.1.1.alpha app/jobs/active_storage/purge_blob_worker.rb
activestorage_legacy-0.1 app/jobs/active_storage/purge_blob_worker.rb