Sha256: be0623876e8462af02462a520f5089ee35548ec6e35fe5327949a54dce212d82

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

module MoreViewHooks
  # Registers this gems a Redmine plugin and applies the needed patches
  class RedminePlugin
    include MoreViewHooks::Infos

    def initialize
      register!
      boot!
    end

    private

    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

    def boot!
      MoreViewHooks.hooks.apply!
    end

    def mirror_assets!
      @plugin.mirror_assets
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redmine-more_view_hooks-0.0.1 lib/more_view_hooks/redmine_plugin.rb