diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-08 15:16:00 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-08 16:13:08 -0800 |
commit | 6ccddadd847c2c3106867ca8085b51a82b449e14 (patch) | |
tree | 224aa07b502ed6c774fbc68be857874333775978 /actionview | |
parent | f369b63ad69ac8bb29811e145a148dd109de777c (diff) | |
download | rails-6ccddadd847c2c3106867ca8085b51a82b449e14.tar.gz rails-6ccddadd847c2c3106867ca8085b51a82b449e14.tar.bz2 rails-6ccddadd847c2c3106867ca8085b51a82b449e14.zip |
reuse details cache key identity object
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/lookup_context.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionview/lib/action_view/lookup_context.rb b/actionview/lib/action_view/lookup_context.rb index 1cc0a55c31..f0099a9ade 100644 --- a/actionview/lib/action_view/lookup_context.rb +++ b/actionview/lib/action_view/lookup_context.rb @@ -62,11 +62,7 @@ module ActionView @digest_cache = Concurrent::Map.new def self.digest_cache(details) - if details[:formats] - details = details.dup - details[:formats] &= Template::Types.symbols - end - @digest_cache[details] ||= Concurrent::Map.new + @digest_cache[details_cache_key(details)] ||= Concurrent::Map.new end def self.details_cache_key(details) |