From 014a979b9935ee6ec1ed10a0993f874409f02cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Lled=C3=B3?= Date: Mon, 16 Sep 2024 12:43:48 +0200 Subject: [PATCH] THREESCALE-8102: Make route creation optional (#536) Fix bug getting the config --- app/models/integration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/integration.rb b/app/models/integration.rb index 1a770ba1..c95a87bc 100644 --- a/app/models/integration.rb +++ b/app/models/integration.rb @@ -18,6 +18,6 @@ def self.for_model(model) end def enabled? - Rails.application.config.integrations.fetch(self.class.name.demodulize.downcase, true) + Rails.application.config.integrations.fetch(self.class.name.demodulize.downcase.to_sym, true) end end