-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathinit.rb
24 lines (22 loc) · 847 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
require 'redmine'
ActionDispatch::Callbacks.to_prepare do
require_dependency 'project'
require_dependency 'principal'
require_dependency 'user'
require_dependency 'issue'
unless Issue.included_modules.include? NotifyCustomUsers::IssuePatch
Issue.send :include, NotifyCustomUsers::IssuePatch
end
unless User.included_modules.include? NotifyCustomUsers::UserPatch
User.send :include, NotifyCustomUsers::UserPatch
end
end
Redmine::Plugin.register :notify_custom_users do
name 'Redmine plugin for Notifying Custom Users'
author 'Restream'
description 'This plugin sends email notifications to users specified in the Custom field of the User format.'
version '1.0.2'
url 'https://github.com/Restream/notify_custom_users'
author_url 'http://github.com/Restream'
requires_redmine :version_or_higher => '2.6.1'
end