instance method
transform_variants_later
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
transform_variants_later()
No documentation comment.
Source
# File activestorage/app/models/active_storage/attachment.rb, line 134
def transform_variants_later
preprocessed_variations = named_variants.filter_map { |_name, named_variant|
if named_variant.preprocessed?(record)
named_variant.transformations
end
}
if blob.preview_image_needed_before_processing_variants? && preprocessed_variations.any?
blob.create_preview_image_later(preprocessed_variations)
else
preprocessed_variations.each do |transformations|
blob.preprocessed(transformations)
end
end
end
Defined in activestorage/app/models/active_storage/attachment.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Attachment