mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Made ActionView::MissingTemplate#initialize optionally accept a single string
prefix to be converted to an array as in ActionView::PathSet#find_all.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user