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
This commit is contained in:
David Heinemeier Hansson 2005-01-11 00:29:55 +00:00
parent 98c16a3320
commit 0d1e3846d6
3 changed files with 4 additions and 1 deletions

@ -1,5 +1,7 @@
*SVN*
* Fixed that MemCacheStore wasn't included by default and added default MemCache object pointing to localhost #447 [Lucas Carlson]
* Added fourth argument to render_collection_of_partials that allows you to specify local_assigns -- just like render_partial #432 [zenspider]
* Fixed that host would choke when cgi.host returned nil #432 [Tobias Luetke]

@ -2,6 +2,7 @@
require 'action_controller/cgi_ext/cookie_performance_fix'
require 'action_controller/session/drb_store'
require 'action_controller/session/active_record_store'
require 'action_controller/session/mem_cache_store'
module ActionController #:nodoc:
class Base

@ -46,7 +46,7 @@ def initialize(session, options = {})
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