diff options
Diffstat (limited to 'actionpack/lib/action_controller/session/mem_cache_store.rb')
-rw-r--r-- | actionpack/lib/action_controller/session/mem_cache_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |