public
Fork of rails/open_id_authentication
Description: OpenID authentication plugin
Homepage: http://rubyonrails.org
Clone URL: git://github.com/technoweenie/open_id_authentication.git
100644 18 lines (16 sloc) 0.392 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
  ActionController::Base.send :include, OpenIdAuthentication
end