forked from dr-itz/redmine_workflow_enhancements
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
26 lines (22 loc) · 862 Bytes
/
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
require_dependency 'workflow_enhancements/hooks'
require_dependency 'workflow_enhancements/patches/action_view_rendering'
Redmine::Plugin.register :redmine_workflow_enhancements do
name 'Redmine Workflow Enhancements'
author 'Daniel Ritz'
description 'Enhancements for Workflow'
version '0.5.0'
url 'https://github.com/dr-itz/redmine_workflow_enhancements'
author_url 'https://github.com/dr-itz/'
requires_redmine '2.2.0'
if Redmine::VERSION::MAJOR >= 3 && Redmine::VERSION::MINOR >= 4
Rails.configuration.to_prepare do
WorkflowsController.send(:include, WorkflowEnhancements::Patches::WorkflowsControllerPatch)
end
end
project_module :issue_tracking do
permission :workflow_graph_view, :workflow_enhancements => :show
end
end
Rails.configuration.to_prepare do
WorkflowEnhancements::Patches::TrackerPatch.apply
end