class NeopolyStyle::RedminePlugin
Registers this gems a Redmine plugin and applies the needed patches
Public Class Methods
new()
click to toggle source
# File lib/neopoly_style/redmine_plugin.rb, line 8 def initialize register! boot! mirror_assets! end
Private Instance Methods
boot!()
click to toggle source
# File lib/neopoly_style/redmine_plugin.rb, line 28 def boot! require "neopoly_style/hooks" Patches.apply! end
mirror_assets!()
click to toggle source
# File lib/neopoly_style/redmine_plugin.rb, line 33 def mirror_assets! @plugin.mirror_assets end
register!()
click to toggle source
# File lib/neopoly_style/redmine_plugin.rb, line 16 def register! @plugin = Redmine::Plugin.register :neopoly_style do name NAME author AUTHORS.keys.join(", ") description DESCRIPTION version VERSION url URL author_url URL directory Engine.root end end