forked from jijeshmohan/redmine_track_control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
31 lines (25 loc) · 982 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
27
28
29
30
31
require 'redmine'
require 'redmine_track_control/tracker_helper'
ActionDispatch::Callbacks.to_prepare do
require_dependency 'tracker'
Tracker.send(:include, RedmineTrackControl::TrackerPatch)
require_dependency 'issue'
Issue.send(:include, RedmineTrackControl::IssuePatch)
require_dependency 'roles_controller'
RolesController.send(:include, RedmineTrackControl::RolesControllerPatch)
require_dependency 'issues_controller'
IssuesController.send(:include, RedmineTrackControl::IssuesControllerPatch)
end
Redmine::Plugin.register :redmine_track_control do
name 'Redmine Tracker Control plugin'
author 'Jijesh Mohan'
description 'Plugin for controlling tracker wise issue creation'
version '1.0.9'
url 'https://github.com/jijeshmohan/redmine_track_control'
author_url 'jijeshmohan.wordpress.com'
project_module :tracker_permissions do
Tracker.all.each do |t|
RedmineTrackControl::TrackerHelper.add_tracker_permission(t)
end
end
end