Skip to Content Skip to Search

class ActiveStorage::PreviewImageJob

Inherits From

Public instance methods

Source code GitHub
# 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

Definition files