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

Use TemplateDetails::Requested as details_key

This commit is contained in:
John Hawthorn 2021-05-12 16:28:03 -07:00
parent 6983a89c72
commit da81403665
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ module ActionView
details = details.dup details = details.dup
details[:formats] &= Template::Types.symbols details[:formats] &= Template::Types.symbols
end end
@details_keys[details] ||= Object.new @details_keys[details] ||= TemplateDetails::Requested.new(**details)
end end
def self.clear def self.clear

View file

@ -205,7 +205,7 @@ module ActionView
private private
def _find_all(name, prefix, partial, details, key, locals) def _find_all(name, prefix, partial, details, key, locals)
path = TemplatePath.build(name, prefix, partial) path = TemplatePath.build(name, prefix, partial)
requested_details = TemplateDetails::Requested.new(**details) requested_details = key || TemplateDetails::Requested.new(**details)
query(path, requested_details, locals, cache: !!key) query(path, requested_details, locals, cache: !!key)
end end