Permalink
Browse files

Made ActionView::MissingTemplate#initialize optionally accept a singl…

…e string

prefix to be converted to an array as in ActionView::PathSet#find_all.
  • Loading branch information...
1 parent fd9df1b commit 30d49d001e9060d1898722dfa43b61b7daf90cd4 Burke Libbey committed May 6, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_view/template/error.rb
@@ -29,6 +29,7 @@ class MissingTemplate < ActionViewError #:nodoc:
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"

0 comments on commit 30d49d0

Please sign in to comment.