forked from kamenf/redmine_watcher_groups
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.rb
More file actions
25 lines (18 loc) · 655 Bytes
/
init.rb
File metadata and controls
25 lines (18 loc) · 655 Bytes
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
require 'redmine'
require_dependency 'watcher_groups_helper_patch'
require_dependency 'watcher_groups/views_issues_hook'
require_dependency 'watcher_groups_helper'
Rails.logger.info 'Starting Watcher Groups plugin for Redmine'
Rails.configuration.to_prepare do
if Issue.method_defined?(:notified_watchers)
Issue.send(:include, WatcherGroupsWatcherHelperPatch)
end
end
Redmine::Plugin.register :redmine_watcher_groups do
name 'Redmine Watcher Groups plugin'
author 'Kamen Ferdinandov'
description 'This is a plugin for Redmine to add wathcer groups functionality'
version '0.0.1'
url 'http://'
author_url 'kamenf'
end