class ProjectCustomStyle::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/project_custom_style/redmine_plugin.rb, line 12
def initialize
  register!
  boot!
end

Private Instance Methods

boot!() click to toggle source
# File lib/project_custom_style/redmine_plugin.rb, line 33
def boot!
  require "project_custom_style/hooks"
end
register!() click to toggle source
# File lib/project_custom_style/redmine_plugin.rb, line 19
def register!
  Redmine::Plugin.register :project_custom_style 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