Permalink
Browse files

Warn if inmemory store is used

  • Loading branch information...
1 parent e3be4f2 commit 8b97cd2e9e3bbe1650ea526b6be3555b159f5ad4 @josh josh committed Jan 21, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/open_id_authentication.rb
View
7 lib/open_id_authentication.rb
@@ -4,6 +4,11 @@
module OpenIdAuthentication
def self.new(app)
+ store = OpenIdAuthentication.store
+ if store.nil?
+ Rails.logger.warn "OpenIdAuthentication.store is nil. Using in-memory store."
+ end
+
::Rack::OpenID.new(app, OpenIdAuthentication.store)
end
@@ -30,7 +35,7 @@ def self.store=(*store_option)
end
end
- self.store = :memory
+ self.store = nil
class Result
ERROR_MESSAGES = {

2 comments on commit 8b97cd2

@coneybeare

If I hit this warning, what do I do to correct it?

@josh
Ruby on Rails member

Set OpenIdAuthentication.store to something.

Please sign in to comment.