提交 db1bac79 编写于 作者: J Joshua Peek

Just file?

上级 93e10f99
......@@ -75,7 +75,7 @@ def find_full_path(path, load_paths)
load_paths = Array(load_paths) + [nil]
load_paths.each do |load_path|
file = [load_path, path].compact.join('/')
return load_path, file if File.exist?(file) && File.file?(file)
return load_path, file if File.file?(file)
end
raise MissingTemplate.new(load_paths, path)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册