From 0d1e3846d6831adfc4d47f117bc0bca1259d9db4 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 11 Jan 2005 00:29:55 +0000 Subject: Fixed that MemCacheStore wasn't included by default and added default MemCache object pointing to localhost #447 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/session/mem_cache_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/session') diff --git a/actionpack/lib/action_controller/session/mem_cache_store.rb b/actionpack/lib/action_controller/session/mem_cache_store.rb index 5dc8f3bfef..1073b408cc 100644 --- a/actionpack/lib/action_controller/session/mem_cache_store.rb +++ b/actionpack/lib/action_controller/session/mem_cache_store.rb @@ -46,7 +46,7 @@ begin unless check_id(id) raise ArgumentError, "session_id '%s' is invalid" % id end - @cache = options['cache'] + @cache = options['cache'] || MemCache.new('localhost') @session_key = "session:#{id}" @hash = {} end -- cgit v1.2.3