Method: ActiveStorage::PreviewImageJob#perform
- Defined in:
- activestorage/app/jobs/active_storage/preview_image_job.rb
#perform(blob, variations) ⇒ Object
9 10 11 12 13 14 15 |
# File 'activestorage/app/jobs/active_storage/preview_image_job.rb', line 9 def perform(blob, variations) blob.preview({}).processed variations.each do |transformations| blob.preprocessed(transformations) end end |