DEV: Fix Zeitwerk reloading error (#89)
Using `.append` can lead to a 'two routes with the same name' error
This commit is contained in:
+1
-1
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user