-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
25 lines (19 loc) · 824 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"
require_dependency "notifier_hook"
require_dependency "my_account_hooks"
require_dependency "user_hooks"
require_dependency "user"
if User.const_defined? "SAFE_ATTRIBUTES"
User::SAFE_ATTRIBUTES << "xmpp_jid"
else
User.safe_attributes "xmpp_jid"
end
Redmine::Plugin.register :redmine_ejabberd_notifications do
name "Redmine XMPP Notifications plugin using ejabberd server"
author "Ilya Kalashnikov & redmine_xmpp_notifications plugin contributors"
description "Plugin to send XMPP notifications using the ejabberd server and its Rest API"
version "0.0.1"
url ""
settings :default => {"url" => "", "jid" => "", "password" => "", "send_to_watchers" => true}, :partial => "settings/xmpp_settings"
end
Rails.logger.info "#{'*'*65}\n* Plugin redmine_ejabberd_notifications init\n#{'*'*65}"