Permalink
Browse files

adds a comment to clarify an edge case

  • Loading branch information...
1 parent 60e3e21 commit 91678a5b29bca29aae4a987615f2503067032802 @fxn fxn committed Nov 21, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 activesupport/lib/active_support/cache.rb
@@ -573,6 +573,9 @@ def raw_value
# 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

0 comments on commit 91678a5

Please sign in to comment.