From 156039c4cf7f0e0ad697443b121b46d3fe57d801 Mon Sep 17 00:00:00 2001 From: Burke Libbey Date: Fri, 6 May 2011 14:02:31 -0500 Subject: Added a test for MissingTemplate change, and changed to use Array.wrap() as requested by josevalim. --- actionpack/lib/action_view/path_set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/path_set.rb') diff --git a/actionpack/lib/action_view/path_set.rb b/actionpack/lib/action_view/path_set.rb index 8b840a6463..1e38b82852 100644 --- a/actionpack/lib/action_view/path_set.rb +++ b/actionpack/lib/action_view/path_set.rb @@ -15,7 +15,7 @@ module ActionView #:nodoc: end def find_all(path, prefixes = [], *args) - prefixes = [prefixes] if String === prefixes + prefixes = Array.wrap(prefixes) if String === prefixes prefixes.each do |prefix| each do |resolver| templates = resolver.find_all(path, prefix, *args) -- cgit v1.2.3