Sha256: 169320137ea7d658e28159b41ca8336052ad2651ea81d6495e3215f611621444
Contents?: true
Size: 895 Bytes
Versions: 1
Compression:
Stored size: 895 Bytes
Contents
module PersonalWikiPage # Registers this gems a Redmine plugin and applies the needed patches class RedminePlugin include PersonalWikiPage::Infos DEFAULT_SETTINGS = { "project" => "orga", "prefix" => "PersonalWiki_" }.freeze SETTING_PARTIAL = "settings/personal_wiki_page_settings" def initialize register! boot! mirror_assets! end private 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 def boot! require "personal_wiki_page/hooks" end def mirror_assets! @plugin.mirror_assets end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmine-personal_wiki_page-0.0.1 | lib/personal_wiki_page/redmine_plugin.rb |