提交 e8d73dd1 编写于 作者: S Sean Griffin

Merge pull request #17013 from gsamokovarov/fix-null-resolver

Fix improper value types used to instantiate a Template in AV::NullResol...
......@@ -46,9 +46,8 @@ def query(path, exts, formats)
class NullResolver < PathResolver
def query(path, exts, formats)
handler, format, variant = extract_handler_and_format_and_variant(path, formats)
[ActionView::Template.new("Template generated by Null Resolver", path, handler, :virtual_path => path, :format => format, :variant => variant)]
[ActionView::Template.new("Template generated by Null Resolver", path.virtual, handler, :virtual_path => path.virtual, :format => format, :variant => variant)]
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册