controller, helper and routes

This commit is contained in:
Rimian Perkins
2017-01-31 13:28:41 +11:00
parent f6c9977c7a
commit df810c3613
5 changed files with 36 additions and 1 deletions
+14 -1
View File
@@ -1,4 +1,17 @@
# name: choice-plugin
# about: Integrating CHOICE with Discourse
# version: 0.0.1
# version: 0.0.2
# authors: Rimian Perkins
module ::Choice
class Engine < ::Rails::Engine
engine_name 'choice'
isolate_namespace Choice
end
end
after_initialize do
Discourse::Application.routes.prepend do
mount ::Choice::Engine, at: '/choice'
end
end