Skip to content

Commit 91678a5

Browse files
committed
adds a comment to clarify an edge case
1 parent 60e3e21 commit 91678a5

File tree

1 file changed

+3
-0
lines changed
  • activesupport/lib/active_support

1 file changed

+3
-0
lines changed

activesupport/lib/active_support/cache.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ def raw_value
573573

574574
# Get the value stored in the cache.
575575
def value
576+
# If the original value was exactly false @value is still true because
577+
# it is marshalled and eventually compressed. Both operations yield
578+
# strings.
576579
if @value
577580
Marshal.load(compressed? ? Zlib::Inflate.inflate(@value) : @value)
578581
end

0 commit comments

Comments
 (0)