X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/81f5c72c76f36e7c712bac0ad54b37d945caa51f..3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5:/config/initializers/openid.rb diff --git a/config/initializers/openid.rb b/config/initializers/openid.rb index 966164b3e..a171d1e7b 100644 --- a/config/initializers/openid.rb +++ b/config/initializers/openid.rb @@ -1 +1,7 @@ -OpenIdAuthentication.store = :file +if defined?(MEMCACHE_SERVERS) + require "openid/store/memcache" + + OpenIdAuthentication.store = OpenID::Store::Memcache.new(MemCache.new(:namespace => "rails", :string_return_types => true)) +else + OpenIdAuthentication.store = :file +end