forked from tainewoo/redmine_ldap_sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
24 lines (20 loc) · 834 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'
Redmine::Plugin.register :redmine_ldap_sync do
name 'Redmine LDAP Sync'
author 'Ricardo Santos, Taine Woo'
author_url 'https://github.com/tainewoo'
description 'Syncs users and groups with ldap'
url 'https://github.com/tainewoo/redmine_ldap_sync'
version '2.3.0'
requires_redmine :version_or_higher => '2.1.0'
settings :default => HashWithIndifferentAccess.new()
menu :admin_menu, :ldap_sync, { :controller => 'ldap_settings', :action => 'index' }, :caption => :label_ldap_synchronization,
:html => {:class => 'icon icon-ldap-sync'}
end
#RedmineApp::Application.config.after_initialize do
Rails.application.config.after_initialize do
require_relative 'lib/ldap_sync/core_ext'
require_relative 'lib/ldap_sync/infectors'
end
# hooks
require_relative 'lib/ldap_sync/hooks'