From a0b4234fe5d58557c99a26c7540d218f0af5f0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Pereira=20de=20Lucena?= Date: Tue, 19 Sep 2023 14:31:04 +0200 Subject: [PATCH] Change how we check that the decidim-templates module is available (#11613) --- decidim-admin/config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-admin/config/routes.rb b/decidim-admin/config/routes.rb index 99b3c6ccaef30..0205ddcf02ea8 100644 --- a/decidim-admin/config/routes.rb +++ b/decidim-admin/config/routes.rb @@ -39,7 +39,7 @@ mount manifest.admin_engine, at: "/#{manifest.name}", as: "decidim_admin_#{manifest.name}" end - mount Decidim::Templates::AdminEngine, at: "/templates", as: "decidim_admin_templates" if Decidim::Admin.enable_templates + mount Decidim::Templates::AdminEngine, at: "/templates", as: "decidim_admin_templates" if Decidim.module_installed?(:templates) resources :users, except: [:edit, :update], controller: "users" do member do