diff options
author | David Chelimsky <dchelimsky@gmail.com> | 2011-04-09 12:51:22 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-13 21:45:51 +0200 |
commit | a26d407f6380493b39ad84e7f1b29899ead6a1f2 (patch) | |
tree | f6d965f07078c4a18adf6742ae233aef70174707 /actionpack/lib/action_view | |
parent | bd3b2241a43982f4f96015a1f841942cb8b0b973 (diff) | |
download | rails-a26d407f6380493b39ad84e7f1b29899ead6a1f2.tar.gz rails-a26d407f6380493b39ad84e7f1b29899ead6a1f2.tar.bz2 rails-a26d407f6380493b39ad84e7f1b29899ead6a1f2.zip |
ActionView::PathSet# accepts String or Array
- Closes #6692
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/path_set.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/path_set.rb b/actionpack/lib/action_view/path_set.rb index e3de3e1eac..8b840a6463 100644 --- a/actionpack/lib/action_view/path_set.rb +++ b/actionpack/lib/action_view/path_set.rb @@ -15,6 +15,7 @@ module ActionView #:nodoc: end def find_all(path, prefixes = [], *args) + prefixes = [prefixes] if String === prefixes prefixes.each do |prefix| each do |resolver| templates = resolver.find_all(path, prefix, *args) |