public
Description: OpenID authentication plugin
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/open_id_authentication.git
josh (author)
Sat May 16 08:52:08 -0700 2009
commit  079b91f70602814c98d4345e198f743bb56b76b5
tree    94ae16f0ae793e300df1b57f523094614d5edf21
parent  e6df78367b257886021785ba0260a4b5a4eca793
100644 19 lines (17 sloc) 0.429 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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