mirror of
https://github.com/redmine/redmine.git
synced 2024-07-28 08:17:39 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
17 lines
327 B
Ruby
17 lines
327 B
Ruby
begin
|
|
require 'openid'
|
|
rescue LoadError
|
|
begin
|
|
gem 'ruby-openid', '>=2.1.4'
|
|
rescue Gem::LoadError
|
|
# no openid support
|
|
end
|
|
end
|
|
|
|
if Object.const_defined?(:OpenID)
|
|
config.to_prepare do
|
|
OpenID::Util.logger = Rails.logger
|
|
ActionController::Base.send :include, OpenIdAuthentication
|
|
end
|
|
end
|