W3cubDocs

/Ruby on Rails 7.0

class ActiveStorage::MirrorJob

Parent:
ActiveStorage::BaseJob

Provides asynchronous mirroring of directly-uploaded blobs.

Public Instance Methods

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

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.