Restore the Entry#bytesize comments removed in #41882

This commit is contained in:
Jean Boussier 2021-04-12 23:15:02 +02:00
parent 6a5fb7dbd4
commit 93e5388653
1 changed files with 3 additions and 1 deletions

View File

@ -845,7 +845,9 @@ module ActiveSupport
end
end
def bytesize # :nodoc:
# Returns the size of the cached value. This could be less than
# <tt>value.bytesize</tt> if the data is compressed.
def bytesize
case value
when NilClass
0