summaryrefslogtreecommitdiffstats
path: root/vendor/plugins/open_id_authentication/init.rb
blob: 2055ef700363c78d902d8676c841ef8a10f9cc9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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