diff options
Diffstat (limited to 'lib/active_vault/purge_job.rb')
-rw-r--r-- | lib/active_vault/purge_job.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/active_vault/purge_job.rb b/lib/active_vault/purge_job.rb new file mode 100644 index 0000000000..d7634af2bb --- /dev/null +++ b/lib/active_vault/purge_job.rb @@ -0,0 +1,7 @@ +class ActiveVault::PurgeJob < ActiveJob::Base + retry_on ActiveVault::StorageException + + def perform(blob) + blob.purge + end +end |