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
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ module ActiveSupport
def load(value)
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
Marshal.load(value)
else