diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-27 14:54:58 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-27 14:54:58 -0500 |
commit | 6ef329d3250cfc3a21184cc2a8248aa18a1f6815 (patch) | |
tree | ffc89a0391f5124937556aa9226eb204a9d25140 /activesupport/lib/active_support | |
parent | 61c471eebb3718a3ef5741e1e4d0974be7483290 (diff) | |
download | rails-6ef329d3250cfc3a21184cc2a8248aa18a1f6815.tar.gz rails-6ef329d3250cfc3a21184cc2a8248aa18a1f6815.tar.bz2 rails-6ef329d3250cfc3a21184cc2a8248aa18a1f6815.zip |
Ensure Memcache local cache returns duplicated values [#2302 state:resolved]
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/cache/strategy/local_cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index 4bbcd8e4c4..3b5fccc737 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -45,7 +45,7 @@ module ActiveSupport elsif value.nil? value = super local_cache.write(key, value || NULL) if local_cache - value + value.duplicable? ? value.dup : value else # forcing the value to be immutable value.duplicable? ? value.dup : value |