class ActionView::Template::Error
def initialize(template)
def initialize(template) super($!.message) @cause = $! if @cause.is_a?(SyntaxError) @cause = ActiveSupport::SyntaxErrorProxy.new(@cause) end @template, @sub_templates = template, nil end
def initialize(template) super($!.message) @cause = $! if @cause.is_a?(SyntaxError) @cause = ActiveSupport::SyntaxErrorProxy.new(@cause) end @template, @sub_templates = template, nil end