forked from suer/redmine_oauth_provider
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit.rb
More file actions
29 lines (24 loc) · 855 Bytes
/
init.rb
File metadata and controls
29 lines (24 loc) · 855 Bytes
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
# -*- encoding : utf-8 -*-
require 'redmine'
module RedmineApp
class Application < Rails::Application
require 'oauth/rack/oauth_filter'
config.middleware.use OAuth::Rack::OAuthFilter
end
end
# Patches to the Redmine core.
Rails.configuration.to_prepare do
require_dependency 'project'
require_dependency 'user'
require_dependency 'hooks/views_layouts_hook'
User.send(:include, OauthProviderUserPatch)
end
Redmine::Plugin.register :redmine_oauth_provider do
name 'Redmine Oauth Provider plugin'
author 'Jana Dvořáková'
description 'Oauth Provider plugin for Redmine'
version '0.0.5'
url 'https://github.com/Virtualmaster/redmine-oauth-provider'
author_url 'http://www.jana4u.net/'
menu :admin_menu, :oauth_clients, { :controller => 'oauth_clients', :action => 'index' }, :caption => :oauth_client_applications
end