From 01caf3a21cc65a06667e1ba32e221c864cfdfafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Bol=C3=ADvar?= Date: Thu, 11 Jan 2024 08:39:32 +0100 Subject: [PATCH] Fix carrierwave initializer (#117) --- config/initializers/carrierwave.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb index 3362571..783af65 100644 --- a/config/initializers/carrierwave.rb +++ b/config/initializers/carrierwave.rb @@ -9,7 +9,7 @@ config.enable_processing = !Rails.env.test? end -if Rails.application.secrets.aws_access_key_id.present? +if Rails.application.secrets.dig(:aws, :access_key_id).present? require "carrierwave/storage/fog" CarrierWave.configure do |config|