Sha256: 5a4f48ce1b6c451cc62836e85083c461545c7300d4d794585fd4bd26e1c54377
Contents?: true
Size: 473 Bytes
Versions: 26
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true class ActiveStorage::PreviewImageJob < ActiveStorage::BaseJob queue_as { ActiveStorage.queues[:preview_image] } discard_on ActiveRecord::RecordNotFound, ActiveStorage::UnrepresentableError retry_on ActiveStorage::IntegrityError, attempts: 10, wait: :polynomially_longer def perform(blob, variations) blob.preview({}).processed variations.each do |transformations| blob.preprocessed(transformations) end end end
Version data entries
26 entries across 26 versions & 2 rubygems