Base path may be nil if template is at the root of the view path

This commit is contained in:
Joshua Peek
2008-08-25 15:26:26 -05:00
parent 49859b0bb1
commit fe2640549b

View File

@@ -7,7 +7,7 @@ module ActionView
attr_reader :original_exception
def initialize(template, assigns, original_exception)
@base_path = template.base_path
@base_path = template.base_path.to_s
@assigns, @source, @original_exception = assigns.dup, template.source, original_exception
@file_path = template.filename
@backtrace = compute_backtrace