From 91678a5b29bca29aae4a987615f2503067032802 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 21 Nov 2011 13:53:40 -0800 Subject: [PATCH] adds a comment to clarify an edge case --- activesupport/lib/active_support/cache.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index ba3064a24e..97583c9bd9 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -573,6 +573,9 @@ module ActiveSupport # Get the value stored in the cache. def value + # If the original value was exactly false @value is still true because + # it is marshalled and eventually compressed. Both operations yield + # strings. if @value Marshal.load(compressed? ? Zlib::Inflate.inflate(@value) : @value) end