1
0
Fork 0
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:
Xavier Noria 2011-11-21 13:53:40 -08:00
parent 60e3e218c2
commit 91678a5b29

View file

@ -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