From 0a59de2d2a35ad3a01d7be67fc89c5d07c540bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 9 Nov 2020 20:11:36 +0000 Subject: [PATCH] Don't require event to be passed to read_entry This will make sure this method is backward compatible with stores that don't pass the intrumentation payload to the method. --- activesupport/lib/active_support/cache/strategy/local_cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index ef1cf051ff..96b4e1dfb7 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -135,7 +135,7 @@ module ActiveSupport hit = false super end - options[:event][:store] = cache.class.name if hit + options[:event][:store] = cache.class.name if hit && options[:event] value else super