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|