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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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" }