-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinit.rb
27 lines (21 loc) · 1 KB
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true
loader = RedminePluginKit::Loader.new plugin_id: 'redmine_issue_view_columns'
Redmine::Plugin.register :redmine_issue_view_columns do
name 'Issue View Columns'
author 'AlphaNodes GmbH'
url 'https://github.com/AlphaNodes/redmine_issue_view_columns'
author_url 'https://alphanodes.com/'
description 'Customize shown columns in subtasks and related issues on issue page'
version RedmineIssueViewColumns::VERSION
requires_redmine version_or_higher: '6.0'
begin
requires_redmine_plugin :additionals, version_or_higher: '4.0.0'
rescue Redmine::PluginNotFound
raise 'Please install additionals plugin (https://github.com/alphanodes/additionals)'
end
project_module :issue_view_columns do
permission :manage_issue_view_columns, { projects: :settings, issue_view_columns: :update }, require: :member
end
settings default: loader.default_settings, partial: 'settings/issue_view_columns_settings'
end
RedminePluginKit::Loader.persisting { loader.load_model_hooks! }