forked from nauphone/redmine_watcher_groups
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
28 lines (21 loc) · 908 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
require 'redmine'
require_dependency 'watcher_groups/views_issues_hook'
require_dependency 'watcher_groups_helper'
require_dependency 'watcher_groups_issue_hook'
Rails.logger.info 'Starting Watcher Groups plugin for Redmine'
Rails.configuration.to_prepare do
unless Issue.included_modules.include?(WatcherGroupsIssuePatch)
Issue.send(:include, WatcherGroupsIssuePatch)
end
unless IssuesController.included_modules.include?(WatcherGroupsIssuesControllerPatch)
IssuesController.send(:include, WatcherGroupsIssuesControllerPatch)
end
end
Redmine::Plugin.register :redmine_watcher_groups do
name 'Redmine Watcher Groups plugin'
author 'Kamen Ferdinandov, Massimo Rossello'
description 'This is a plugin for Redmine to add watcher groups functionality'
version '1.0.0'
url 'http://github.com/maxrossello/redmine_watcher_groups'
author_url 'http://github.com/maxrossello'
end