Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v5.2.3) is shown here.
decorate(templates, path_info, details, locals)
private
Ensures all the resolver information is set in the template.
# File actionview/lib/action_view/template/resolver.rb, line 195
def decorate(templates, path_info, details, locals)
cached = nil
templates.each do |t|
t.locals = locals
t.formats = details[:formats] || [:html] if t.formats.empty?
t.variants = details[:variants] || [] if t.variants.empty?
t.virtual_path ||= (cached ||= build_path(*path_info))
end
end