instance method
perform
Ruby on Rails edge
Since v7.1.6Signature
perform(blob, variations)
No documentation comment.
Parameters
-
blobreq -
variationsreq
Source
# File activestorage/app/jobs/active_storage/preview_image_job.rb, line 18
def perform(blob, variations)
blob.preview({}).processed
variations.each do |transformations|
ActiveStorage::TransformJob.perform_later(blob, transformations) if blob.representable?
end
end
Defined in activestorage/app/jobs/active_storage/preview_image_job.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::PreviewImageJob