forked from jrupesh/event_notifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
executable file
·46 lines (40 loc) · 1.86 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require 'redmine'
require 'event_notification/patches/users_helper_patch'
require 'event_notification/patches/user_patch'
require 'event_notification/patches/project_patch'
require 'event_notification/patches/member_patch'
require 'event_notification/patches/issue_patch'
require 'event_notification/patches/document_patch'
require 'event_notification/patches/journal_patch'
require 'event_notification/patches/message_patch'
require 'event_notification/patches/wiki_content_patch'
require 'event_notification/patches/watchers_controller_patch'
require 'event_notification/patches/groups_controller_patch'
require 'event_notification/patches/principal_memberships_controller_patch'
require 'event_notification/patches/user_preference_patch'
require 'event_notification/patches/custom_field_patch'
require 'event_notification/patches/news_patch'
require 'event_notification/patches/watcher_patch'
require 'event_notification/patches/mailer_patch'
ActionDispatch::Callbacks.to_prepare do
require_dependency 'event_notification/hooks/event_notification_hook_listener'
end
Rails.configuration.to_prepare do
require 'event_notification/patches/acts_as_watchable_patch'
end
Redmine::Plugin.register :event_notifications do
name 'Event Notifications plugin'
author 'Rupesh J'
description 'Customizes redmine project notification settings for every project event.'
version '2.4.1'
author_url 'mailto:[email protected]'
settings :default => {
'enable_event_notifications' => false,
'issue_cf_notifications' => [],
'issue_category_notifications' => [],
'issue_involved_in_related_notified'=> nil,
'issue_relation_attachment_notified'=> false,
'event_notifications_with_author' => false,
'enable_watcher_notification' => 0},
:partial => 'settings/event_notifications_settings'
end