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:
parent
6983a89c72
commit
da81403665
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ module ActionView
|
|||
details = details.dup
|
||||
details[:formats] &= Template::Types.symbols
|
||||
end
|
||||
@details_keys[details] ||= Object.new
|
||||
@details_keys[details] ||= TemplateDetails::Requested.new(**details)
|
||||
end
|
||||
|
||||
def self.clear
|
||||
|
|
|
@ -205,7 +205,7 @@ module ActionView
|
|||
private
|
||||
def _find_all(name, prefix, partial, details, key, locals)
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue