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:
parent
843cab6f98
commit
e5a0122419
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue