diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-08 12:40:15 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-08 12:40:15 +0200 |
commit | e5a01224195b289748b3996e6deb0587baf625d8 (patch) | |
tree | febac7b185db62780fa9d2565c5f99bb34e7c85c | |
parent | 843cab6f98e2d6c99bc913bd2aade6c848e4ce8d (diff) | |
download | rails-e5a01224195b289748b3996e6deb0587baf625d8.tar.gz rails-e5a01224195b289748b3996e6deb0587baf625d8.tar.bz2 rails-e5a01224195b289748b3996e6deb0587baf625d8.zip |
Revert to use === only here because of perf. :(
-rw-r--r-- | actionpack/lib/action_view/path_set.rb | 4 |
1 files changed, 1 insertions, 3 deletions
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) |