From a4feb9e111332c56f98041cbca02d3f6c8369f7e Mon Sep 17 00:00:00 2001 From: Hartley McGuire Date: Mon, 7 Feb 2022 17:47:21 -0500 Subject: [PATCH] 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 --- activesupport/lib/active_support/json_with_marshal_fallback.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/json_with_marshal_fallback.rb b/activesupport/lib/active_support/json_with_marshal_fallback.rb index 637350d86d..2d587112ff 100644 --- a/activesupport/lib/active_support/json_with_marshal_fallback.rb +++ b/activesupport/lib/active_support/json_with_marshal_fallback.rb @@ -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