diff options
author | Burke Libbey <burke@burkelibbey.org> | 2011-05-06 12:39:11 -0500 |
---|---|---|
committer | Burke Libbey <burke@burkelibbey.org> | 2011-05-06 12:42:27 -0500 |
commit | 30d49d001e9060d1898722dfa43b61b7daf90cd4 (patch) | |
tree | d515515bc444c0e1f7c25ffc5a3c0c3571026318 | |
parent | fd9df1b1dd1196c2233835e25a6a38956e9e3959 (diff) | |
download | rails-30d49d001e9060d1898722dfa43b61b7daf90cd4.tar.gz rails-30d49d001e9060d1898722dfa43b61b7daf90cd4.tar.bz2 rails-30d49d001e9060d1898722dfa43b61b7daf90cd4.zip |
Made ActionView::MissingTemplate#initialize optionally accept a single string
prefix to be converted to an array as in ActionView::PathSet#find_all.
-rw-r--r-- | actionpack/lib/action_view/template/error.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb index e246646963..fa7a620daa 100644 --- a/actionpack/lib/action_view/template/error.rb +++ b/actionpack/lib/action_view/template/error.rb @@ -29,6 +29,7 @@ module ActionView def initialize(paths, path, prefixes, partial, details, *) @path = path + prefixes = [prefixes] if String === prefixes display_paths = paths.compact.map{ |p| p.to_s.inspect }.join(", ") template_type = if partial "partial" |