mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 22:36:02 +01:00
Moved Rails plugins required by the core to lib/plugins.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9533 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
12
lib/plugins/open_id_authentication/init.rb
Normal file
12
lib/plugins/open_id_authentication/init.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
if Rails.version < '3'
|
||||
config.gem 'rack-openid', :lib => 'rack/openid', :version => '>=0.2.1'
|
||||
end
|
||||
|
||||
require 'open_id_authentication'
|
||||
|
||||
config.middleware.use OpenIdAuthentication
|
||||
|
||||
config.after_initialize do
|
||||
OpenID::Util.logger = Rails.logger
|
||||
ActionController::Base.send :include, OpenIdAuthentication
|
||||
end
|
||||
Reference in New Issue
Block a user