aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/jobs/active_storage/mirror_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/app/jobs/active_storage/mirror_job.rb')
-rw-r--r--activestorage/app/jobs/active_storage/mirror_job.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activestorage/app/jobs/active_storage/mirror_job.rb b/activestorage/app/jobs/active_storage/mirror_job.rb
index e34faedb56..e70629d6ec 100644
--- a/activestorage/app/jobs/active_storage/mirror_job.rb
+++ b/activestorage/app/jobs/active_storage/mirror_job.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+require "active_support/core_ext/object/try"
+
# Provides asynchronous mirroring of directly-uploaded blobs.
class ActiveStorage::MirrorJob < ActiveStorage::BaseJob
queue_as { ActiveStorage.queues[:mirror] }