Permalink
Browse files

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

  • Loading branch information...
1 parent 843cab6 commit e5a01224195b289748b3996e6deb0587baf625d8 @josevalim josevalim committed May 8, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 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 @@ 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)

0 comments on commit e5a0122

Please sign in to comment.