From 6b1ddff0f6d3e33ce546e85ea9f03ba9ecd32b6a Mon Sep 17 00:00:00 2001 From: Roberto Miranda Date: Fri, 30 Aug 2024 16:19:10 +0100 Subject: [PATCH] Disable metrics --- lib/promenade/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/promenade/railtie.rb b/lib/promenade/railtie.rb index 88fe43b..c04c46e 100644 --- a/lib/promenade/railtie.rb +++ b/lib/promenade/railtie.rb @@ -16,7 +16,7 @@ class Railtie < ::Rails::Railtie end initializer "promenade.configure_middlewares", after: :load_config_initializers do - pitchfork_stats_enabled = Promenade.configuration.pitchfork_stats_enabled + pitchfork_stats_enabled = false if pitchfork_stats_enabled && defined?(::Raindrops) require "promenade/raindrops/middleware"