Sha256: 1daba0cdffd7cbcf38e801811d487abd3f7c8bdac1e843fbe024b505f2538129

Contents?: true

Size: 223 Bytes

Versions: 1

Compression:

Stored size: 223 Bytes

Contents

require "active_job"

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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activestorage-0.1 lib/active_storage/purge_job.rb