OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/modules/ldap_groups/lib/open_project/ldap_groups/engine.rb

27 lines
791 B

module OpenProject::LdapGroups
class Engine < ::Rails::Engine
engine_name :openproject_ldap_groups
include OpenProject::Plugins::ActsAsOpEngine
register 'openproject-ldap_groups',
author_url: 'https://github.com/opf/openproject-ldap_groups',
bundled: true,
settings: {
default: {
name_attribute: 'cn'
}
} do
menu :admin_menu,
:plugin_ldap_groups,
{ controller: '/ldap_groups/synchronized_groups', action: :index },
parent: :authentication,
last: true,
caption: ->(*) { I18n.t('ldap_groups.label_menu_item') }
end
add_cron_jobs { LdapGroups::SynchronizationJob }
patches %i[AuthSource Group]
end
end