mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
adds a comment to clarify an edge case
This commit is contained in:
parent
60e3e218c2
commit
91678a5b29
1 changed files with 3 additions and 0 deletions
|
@ -573,6 +573,9 @@ module ActiveSupport
|
||||||
|
|
||||||
# Get the value stored in the cache.
|
# Get the value stored in the cache.
|
||||||
def value
|
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
|
if @value
|
||||||
Marshal.load(compressed? ? Zlib::Inflate.inflate(@value) : @value)
|
Marshal.load(compressed? ? Zlib::Inflate.inflate(@value) : @value)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue