diff options
author | jweiss <jweiss@blowfish.local> | 2008-04-17 12:58:31 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-04-17 12:58:31 -0500 |
commit | 9e1d506a8cfedef2fdd605e4cbf4bf53651ad214 (patch) | |
tree | bb68f6da2b3425008fdab9905555dd813d42756a /activesupport/lib/active_support/cache | |
parent | 9e53b63601ce12fb7e4c8fdb16d5706ea8609d2f (diff) | |
download | rails-9e1d506a8cfedef2fdd605e4cbf4bf53651ad214.tar.gz rails-9e1d506a8cfedef2fdd605e4cbf4bf53651ad214.tar.bz2 rails-9e1d506a8cfedef2fdd605e4cbf4bf53651ad214.zip |
Support options passed to ActiveSupport::Cache :mem_cache_store [#14 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r-- | activesupport/lib/active_support/cache/mem_cache_store.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb index 88e324aa3a..9b787702b2 100644 --- a/activesupport/lib/active_support/cache/mem_cache_store.rb +++ b/activesupport/lib/active_support/cache/mem_cache_store.rb @@ -15,9 +15,10 @@ module ActiveSupport def initialize(*addresses) addresses = addresses.flatten + options = addresses.extract_options! addresses = ["localhost"] if addresses.empty? @addresses = addresses - @data = MemCache.new(addresses) + @data = MemCache.new(addresses, options) end def read(key, options = nil) |