Don't overwrite storage service from engine

This commit is contained in:
Kevin McConnell
2025-12-10 14:08:08 +00:00
parent 2eeeda9bad
commit a5396bbb1a
+4 -1
View File
@@ -41,7 +41,10 @@ Rails.application.configure do
}
# Select Active Storage service via env var; default to local disk.
config.active_storage.service = ENV.fetch("ACTIVE_STORAGE_SERVICE", "local").to_sym
# Don't overwrite if it's already been set (e.g. by fizzy-saas)
if config.active_storage.service.blank?
config.active_storage.service = ENV.fetch("ACTIVE_STORAGE_SERVICE", "local").to_sym
end
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.asset_host = "http://assets.example.com"