-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
30 lines (22 loc) · 937 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
require 'redmine'
require 'dispatcher'
require 'issue_patch'
require 'action_mailer_base_extensions'
Dispatcher.to_prepare do
require_dependency 'issue'
# Guards against including the module multiple time (like in tests)
# and registering multiple callbacks
unless Issue.included_modules.include? Notification::IssuePatch
Issue.send(:include, Notification::IssuePatch)
end
end
require_dependency 'issue_hooks'
Redmine::Plugin.register :redmine_stealth do
name 'Notification Manager'
author 'Adrian Herzog, Applify'
description 'Enables users to configure Redmine email notifications ' +
'for their actions'
version '0.1.0'
permission :notifications, {:notifications => [:index, :edit]}, :public => true
menu :project_menu, :notifications, { :controller => 'notifications', :action => 'index' }, :caption => 'Notifications', :after => :settings, :param => :project_id
end