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

fix MessageEncryptor isolation tests

5d0c2b0 added a usage of String#starts_with? which won't work in
isolation tests because its a core extension alias
This commit is contained in:
Hartley McGuire 2022-02-07 17:47:21 -05:00
parent a9bbc92642
commit a4feb9e111

View file

@ -26,7 +26,7 @@ module ActiveSupport
def load(value) def load(value)
if self.fallback_to_marshal_deserialization if self.fallback_to_marshal_deserialization
if value.starts_with?(MARSHAL_SIGNATURE) if value.start_with?(MARSHAL_SIGNATURE)
logger.warn("JsonWithMarshalFallback: Marshal load fallback occurred.") if logger logger.warn("JsonWithMarshalFallback: Marshal load fallback occurred.") if logger
Marshal.load(value) Marshal.load(value)
else else