blob: 87eb19815da39a4646f8463125f6b337c84a9d04 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
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
|