1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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