DEV: Fix Zeitwerk reloading error (#89)

Using `.append` can lead to a 'two routes with the same name' error
This commit is contained in:
David Taylor
2023-06-16 11:32:54 +01:00
committed by GitHub
parent 8742535024
commit 68bc80e19d
+1 -1
View File
@@ -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" }