From 68bc80e19d0f8ae6a664715c87d91552efe5cc63 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 16 Jun 2023 11:32:54 +0100 Subject: [PATCH] DEV: Fix Zeitwerk reloading error (#89) Using `.append` can lead to a 'two routes with the same name' error --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index ad451dea..41a2a294 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,4 +16,4 @@ DiscourseAi::Engine.routes.draw do end end -Discourse::Application.routes.append { mount ::DiscourseAi::Engine, at: "discourse-ai" } +Discourse::Application.routes.draw { mount ::DiscourseAi::Engine, at: "discourse-ai" }