From 2fdbd381885aef73e7f6f6ad63dc3d4120a419e1 Mon Sep 17 00:00:00 2001 From: Johny Ho Date: Fri, 31 May 2024 16:57:38 -0400 Subject: [PATCH] wip --- lib/props_template/layout_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/props_template/layout_patch.rb b/lib/props_template/layout_patch.rb index 466404f..57ad953 100644 --- a/lib/props_template/layout_patch.rb +++ b/lib/props_template/layout_patch.rb @@ -1,7 +1,7 @@ module Props module LayoutPatch def render_template(view, template, layout_name, locals) - unless view.respond_to?(:active_template_virtual_path) || view.is_a?(ActionView::Template::Text) + unless view.respond_to?(:active_template_virtual_path) || template.is_a?(ActionView::Template::Text) view.instance_eval <<~RUBY, __FILE__, __LINE__ + 1 def active_template_virtual_path; "#{template.virtual_path}";end RUBY