Skip to content

Commit

Permalink
Change how we check that the decidim-templates module is available (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena authored Sep 19, 2023
1 parent d2d3905 commit a0b4234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-admin/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0b4234

Please sign in to comment.