redmine/vendor/plugins/open_id_authentication/init.rb
Jean-Philippe Lang ff9da0bab0 Removes the fat ruby-openid gem. Simply use 'gem install ruby-openid' to enable openid support.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2458 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-12 21:25:50 +00:00

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