From e5a01224195b289748b3996e6deb0587baf625d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 8 May 2011 12:40:15 +0200 Subject: Revert to use === only here because of perf. :( --- actionpack/lib/action_view/path_set.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/path_set.rb b/actionpack/lib/action_view/path_set.rb index 54b9a6d39e..8b840a6463 100644 --- a/actionpack/lib/action_view/path_set.rb +++ b/actionpack/lib/action_view/path_set.rb @@ -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) -- cgit v1.2.3