Class: ActiveStorage::MirrorJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/active_storage/mirror_job.rb

Overview

Provides asynchronous mirroring of directly-uploaded blobs.

Instance Method Summary collapse

Instance Method Details

#perform(key, checksum:) ⇒ Object



12
13
14
# File 'app/jobs/active_storage/mirror_job.rb', line 12

def perform(key, checksum:)
  ActiveStorage::Blob.service.try(:mirror, key, checksum: checksum)
end