class ActiveStorage::MirrorJob
Provides asynchronous mirroring of directly-uploaded blobs.
Inherits From
-
class
ActiveStorage::
BaseJob
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