Skip to Content Skip to Search

class ActiveStorage::MirrorJob

Provides asynchronous mirroring of directly-uploaded blobs.

Inherits From

Public instance methods

Source code GitHub
# File activestorage/app/jobs/active_storage/mirror_job.rb, line 12
def perform(key, checksum:)
  ActiveStorage::Blob.service.try(:mirror, key, checksum: checksum)
end

Definition files