forked from suer/redmine_oauth_provider
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.rb
28 lines (24 loc) · 777 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
25
26
27
28
# -*- 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.
prepare = lambda do
require_dependency 'project'
require_dependency 'user'
User.send(:include, OauthProviderUserPatch)
end
prepare.call if Redmine.const_defined?(:PluginLoader)
Rails.configuration.to_prepare(&prepare)
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-SNAPSHOT'
url 'https://github.com/Virtualmaster/redmine-oauth-provider'
author_url 'http://www.jana4u.net/'
end