forked from devopskube/redmine_openid_connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
20 lines (17 loc) · 792 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'redmine'
require 'redmine_openid_connect/application_controller_patch'
require 'redmine_openid_connect/account_controller_patch'
require 'redmine_openid_connect/hooks'
Redmine::Plugin.register :redmine_openid_connect do
name 'Redmine Openid Connect plugin'
author 'Alfonso Juan Dillera / Markus M. May'
description 'OpenID Connect implementation for Redmine'
version '0.9.4'
url 'https://github.com/devopskube/redmine_openid_connect'
author_url 'http://github.com/adillera'
settings :default => { 'empty' => true }, partial: 'settings/redmine_openid_connect_settings'
end
Rails.configuration.to_prepare do
ApplicationController.prepend(RedmineOpenidConnect::ApplicationControllerPatch)
AccountController.prepend(RedmineOpenidConnect::AccountControllerPatch)
end