1
0
mirror of synced 2026-09-12 17:05:03 +00:00
Files
discourse-subscriptions/plugin.rb
T
2019-09-11 19:11:02 +10:00

18 lines
579 B
Ruby

# name: Discourse Patrons
# about: Integrates Stripe into Discourse to allow visitors to make donations
# version: 1.0.0
# url: https://github.com/rimian/discourse-patron
# authors: Rimian Perkins
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