mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-06 17:49:24 +00:00
15 lines
425 B
Ruby
15 lines
425 B
Ruby
# name: Discourse Patrons
|
|
# version: 1.0.0
|
|
|
|
enabled_site_setting :discourse_patrons_enabled
|
|
|
|
after_initialize do
|
|
load File.expand_path('../lib/discourse_patrons/engine.rb', __FILE__)
|
|
load File.expand_path('../config/routes.rb', __FILE__)
|
|
load File.expand_path('../app/controllers/patrons_controller.rb', __FILE__)
|
|
|
|
Discourse::Application.routes.append do
|
|
mount ::DiscoursePatrons::Engine, at: 'patrons'
|
|
end
|
|
end
|