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