mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2438 e93f8b46-1217-0410-a6f0-8f06a7374b81
19 lines
429 B
Ruby
19 lines
429 B
Ruby
if config.respond_to?(:gems)
|
|
config.gem 'ruby-openid', :lib => 'openid', :version => '>=2.0.4'
|
|
else
|
|
begin
|
|
require 'openid'
|
|
rescue LoadError
|
|
begin
|
|
gem 'ruby-openid', '>=2.0.4'
|
|
rescue Gem::LoadError
|
|
puts "Install the ruby-openid gem to enable OpenID support"
|
|
end
|
|
end
|
|
end
|
|
|
|
config.to_prepare do
|
|
OpenID::Util.logger = Rails.logger
|
|
ActionController::Base.send :include, OpenIdAuthentication
|
|
end
|