1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
José Valim 2011-05-08 12:40:15 +02:00
parent 843cab6f98
commit e5a0122419

View file

@ -1,5 +1,3 @@
require "active_support/core_ext/array/wrap"
module ActionView #:nodoc:
# = Action View PathSet
class PathSet < Array #:nodoc:
@ -17,7 +15,7 @@ module ActionView #:nodoc:
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)