diff .svn/pristine/c8/c8bf21d1404b2daaac7abe315bbaa50d1e93dc11.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.svn/pristine/c8/c8bf21d1404b2daaac7abe315bbaa50d1e93dc11.svn-base	Fri Feb 24 19:09:32 2012 +0000
@@ -0,0 +1,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