From 96ae298464ca74352e14a4f7e340b27829238760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Tr=E1=BA=A7n=20Chung?= Date: Tue, 17 Dec 2024 20:50:44 +0900 Subject: [PATCH] fix: Dotenv::Railtie is deprecated (#10515) https://github.com/bkeepers/dotenv/pull/468 Renames Dotenv::Railtie => Dotenv::Rails Co-authored-by: Sojan Jose --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index f3443ddb3..e60697178 100644 --- a/config/application.rb +++ b/config/application.rb @@ -11,7 +11,7 @@ Bundler.require(*Rails.groups) ## Load the specific APM agent # We rely on DOTENV to load the environment variables # We need these environment variables to load the specific APM agent -Dotenv::Railtie.load +Dotenv::Rails.load require 'ddtrace' if ENV.fetch('DD_TRACE_AGENT_URL', false).present? require 'elastic-apm' if ENV.fetch('ELASTIC_APM_SECRET_TOKEN', false).present? require 'scout_apm' if ENV.fetch('SCOUT_KEY', false).present?