diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-06-30 19:12:58 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-06-30 19:12:58 +0200 |
commit | dd50144bcd4dbd605995123ab5afc99e40e9a630 (patch) | |
tree | 81698d44cf2f9dd62e24a95f945f6904689be2f2 /lib/active_file/purge_job.rb | |
download | rails-dd50144bcd4dbd605995123ab5afc99e40e9a630.tar.gz rails-dd50144bcd4dbd605995123ab5afc99e40e9a630.tar.bz2 rails-dd50144bcd4dbd605995123ab5afc99e40e9a630.zip |
First sketching
Diffstat (limited to 'lib/active_file/purge_job.rb')
-rw-r--r-- | lib/active_file/purge_job.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/active_file/purge_job.rb b/lib/active_file/purge_job.rb new file mode 100644 index 0000000000..1a967db2f0 --- /dev/null +++ b/lib/active_file/purge_job.rb @@ -0,0 +1,7 @@ +class ActiveFile::PurgeJob < ActiveJob::Base + retry_on ActiveFile::StorageException + + def perform(blob) + blob.purge + end +end |