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

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.
This commit is contained in:
Rafael Mendonça França 2020-11-09 20:11:36 +00:00
parent f432f70aeb
commit 0a59de2d2a
No known key found for this signature in database
GPG key ID: FC23B6D0F1EEE948

View file

@ -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