To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / c8 / c8bf21d1404b2daaac7abe315bbaa50d1e93dc11.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (327 Bytes)
| 1 |
begin |
|---|---|
| 2 |
require 'openid' |
| 3 |
rescue LoadError |
| 4 |
begin |
| 5 |
gem 'ruby-openid', '>=2.1.4' |
| 6 |
rescue Gem::LoadError |
| 7 |
# no openid support |
| 8 |
end |
| 9 |
end |
| 10 |
|
| 11 |
if Object.const_defined?(:OpenID) |
| 12 |
config.to_prepare do |
| 13 |
OpenID::Util.logger = Rails.logger |
| 14 |
ActionController::Base.send :include, OpenIdAuthentication |
| 15 |
end |
| 16 |
end |