From 02ce247e640c6ad1f54df0acf19fdaf82259d56f Mon Sep 17 00:00:00 2001 From: jazairi <16103405+jazairi@users.noreply.github.com> Date: Wed, 29 Jul 2026 10:12:15 -0700 Subject: [PATCH] Disable image variant processing Why these changes are being introduced: Active Storage attempts to load an image processor gem as part of its initialization, even if the app does not actively generate variants. (ETD does not.) Relevant ticket(s): - [ETD-668](https://mitlibraries.atlassian.net/browse/ETD-668) How this addresses that need: This explicitly disables the variant processor to suppress the Active Storage initialization error. Side effects of this change: If we ever *do* need image variants, we will need the `image_processing` gem (or another image processor). --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 3dedb81f..433db388 100644 --- a/config/application.rb +++ b/config/application.rb @@ -32,5 +32,8 @@ class Application < Rails::Application # config.time_zone = "Central Time (US & Canada)" # config.eager_load_paths << Rails.root.join("extras") config.active_job.queue_adapter = :delayed_job + + # Disable Active Storage image variant processing since the app doesn't use image variants + config.active_storage.variant_processor = :disabled end end