Browse files

Inline tmp dir config

  • Loading branch information...
1 parent 8ff0a80 commit 2446d3c4a7e197b221c73ce48cc9834ddd3c9a20 @josh josh committed Jan 13, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/open_id_authentication.rb
View
4 lib/open_id_authentication.rb
@@ -3,8 +3,6 @@
require 'rack/openid'
module OpenIdAuthentication
- OPEN_ID_AUTHENTICATION_DIR = Rails.root.join('tmp/openids')
-
def self.new(app)
::Rack::OpenID.new(app, OpenIdAuthentication.store)
end
@@ -22,7 +20,7 @@ def self.store=(*store_option)
OpenID::Store::Memory.new
when :file
require 'openid/store/filesystem'
- OpenID::Store::Filesystem.new(OPEN_ID_AUTHENTICATION_DIR)
+ OpenID::Store::Filesystem.new(Rails.root.join('tmp/openids'))
when :memcache
require 'openid/store/memcache'
OpenID::Store::Memcache.new(MemCache.new(parameters))

0 comments on commit 2446d3c

Please sign in to comment.