mirror of
https://github.com/github/rails.git
synced 2026-01-26 23:08:58 -05:00
Base path may be nil if template is at the root of the view path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user