view .svn/pristine/c8/c8bf21d1404b2daaac7abe315bbaa50d1e93dc11.svn-base @ 1539:22d57b0e0a77 live

OK, this script works now, but it should be using the API
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 21 May 2015 17:31:06 +0100
parents cbb26bc654de
children
line wrap: on
line source
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