Sha256: 2b0c5dad9176ab92e6e9e21f3f2f338e2e9a7a30c2c631120791baac6f9fef9e

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

require "deface"

require "more_view_hooks/version"
require "more_view_hooks/infos"
require "more_view_hooks/engine"
require "more_view_hooks/hook"
require "more_view_hooks/hook_collection"

# Redmine plugin to allow injecting more view hooks
module MoreViewHooks
  def hooks
    @hooks ||= HookCollection.new
  end
  module_function :hooks

  def add(*args)
    hooks.add(*args)
  end
  module_function :add

  def redmine_version_at_least?(other)
    Gem::Version.new(::Redmine::VERSION) > Gem::Version.new(other)
  end
  module_function :redmine_version_at_least?

  def load_default_additional_hooks!
    require "more_view_hooks/default_additional_hooks"
  end
  module_function :load_default_additional_hooks!
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redmine-more_view_hooks-0.0.3 lib/redmine-more_view_hooks.rb
redmine-more_view_hooks-0.0.2 lib/redmine-more_view_hooks.rb