提交 e5a01224 编写于 作者: J José Valim

Revert to use === only here because of perf. :(

上级 843cab6f
require "active_support/core_ext/array/wrap"
module ActionView #:nodoc:
# = Action View PathSet
class PathSet < Array #:nodoc:
......@@ -17,7 +15,7 @@ def find(*args)
end
def find_all(path, prefixes = [], *args)
prefixes = Array.wrap(prefixes)
prefixes = [prefixes] if String === prefixes
prefixes.each do |prefix|
each do |resolver|
templates = resolver.find_all(path, prefix, *args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册