class PersonalWikiPage::RedminePlugin
Registers this gems a Redmine plugin and applies the needed patches
Constants
- DEFAULT_SETTINGS
- SETTING_PARTIAL
Public Class Methods
new()
click to toggle source
# File lib/personal_wiki_page/redmine_plugin.rb, line 13 def initialize register! boot! mirror_assets! end
Private Instance Methods
boot!()
click to toggle source
# File lib/personal_wiki_page/redmine_plugin.rb, line 35 def boot! require "personal_wiki_page/hooks" end
mirror_assets!()
click to toggle source
# File lib/personal_wiki_page/redmine_plugin.rb, line 39 def mirror_assets! @plugin.mirror_assets end
register!()
click to toggle source
# File lib/personal_wiki_page/redmine_plugin.rb, line 21 def register! @plugin = Redmine::Plugin.register :personal_wiki_page do name NAME author AUTHORS.keys.join(", ") description DESCRIPTION version VERSION url URL author_url URL directory Engine.root settings default: DEFAULT_SETTINGS, partial: SETTING_PARTIAL end end