rails/activestorage/app
Rosa Gutierrez 6ecb53cf92 Don't enqueue jobs to process a preview image if no variant requires it
This follows up on https://github.com/rails/rails/pull/51030, that introduces a
behaviour change for previewable attachments that don't specify any variants at all
or no variants that require pre-processing via `TransformJob`.
Before, when no variant required pre-processing, Attachment#transform_variants_later
didn't do anything. Now, a `ActiveStorage::PreviewImageJob` is enqueued with
the attachment's blob and a empty array.
2024-03-20 07:37:32 +01:00
..
assets/javascripts Fix submit button selector for `type`-less buttons 2023-11-24 15:36:13 -06:00
controllers Fix AS:Representations::ProxyController returning the wrong preview 2023-11-21 21:00:35 +01:00
javascript/activestorage Fix submit button selector for `type`-less buttons 2023-11-24 15:36:13 -06:00
jobs/active_storage Fixes race condition when multiple preprocessed variants are defined for a Previewable file is attached 2024-02-09 13:22:35 -05:00
models/active_storage Don't enqueue jobs to process a preview image if no variant requires it 2024-03-20 07:37:32 +01:00