diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-28 21:20:46 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-28 21:20:46 -0600 |
commit | 2e69db18ce2815c25eee64fc2978e7f6b57f6e1f (patch) | |
tree | 1acecec2f34325ebf5e2b839e8a6d0095c8f5ef1 /activesupport/lib/active_support | |
parent | a1a9889b06faf5e994fc29d462c7063b5ff37a3a (diff) | |
download | rails-2e69db18ce2815c25eee64fc2978e7f6b57f6e1f.tar.gz rails-2e69db18ce2815c25eee64fc2978e7f6b57f6e1f.tar.bz2 rails-2e69db18ce2815c25eee64fc2978e7f6b57f6e1f.zip |
Only dup local cache values if duplicable [#1653 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 621358d701..d83e259a2a 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -41,7 +41,7 @@ module ActiveSupport value else # forcing the value to be immutable - value.dup + value.duplicable? ? value.dup : value end end |