aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-09-30 22:31:58 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-09-30 22:31:58 -0700
commit15125e092c2adc33dbec9005ae82a70fcae82572 (patch)
treea5106f9936361ac3820630ce1dc8ca64e8532e03 /activesupport/lib/active_support/cache.rb
parent34239cc511ac8de9a23e84fd6835a2f2440d2863 (diff)
parentb784900208c0ea4343a75fa1cefdb1872fa14f7b (diff)
downloadrails-15125e092c2adc33dbec9005ae82a70fcae82572.tar.gz
rails-15125e092c2adc33dbec9005ae82a70fcae82572.tar.bz2
rails-15125e092c2adc33dbec9005ae82a70fcae82572.zip
Merge pull request #7812 from bdurand/optimize_cache_entry_take_2
fix broken cache tests
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
-rw-r--r--activesupport/lib/active_support/cache.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index a681a8d6a9..690e5ce194 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -591,9 +591,9 @@ module ActiveSupport
when NilClass
0
when String
- value.bytesize
+ @v.bytesize
else
- @s = Marshal.dump(value).bytesize
+ @s = Marshal.dump(@v).bytesize
end
end
end