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:
parent
a9bbc92642
commit
a4feb9e111
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue