mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 20:18:44 +08:00
![Joffrey JAFFEUX](/assets/img/avatar_default.png)
Fixes bugs, simplifies code, more default files. General idea, more is more here as it's easier to just delete things than reading and passing all the options.
13 lines
340 B
Plaintext
13 lines
340 B
Plaintext
module <%= classified_name %>
|
|
class Engine < ::Rails::Engine
|
|
engine_name "<%= classified_name %>".freeze
|
|
isolate_namespace <%= classified_name %>
|
|
|
|
config.after_initialize do
|
|
Discourse::Application.routes.append do
|
|
mount ::<%= classified_name %>::Engine, at: "/<%= dasherized_name %>"
|
|
end
|
|
end
|
|
end
|
|
end
|