Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed May 31, 2024
1 parent c7f6cb5 commit 2fdbd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/props_template/layout_patch.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2fdbd38

Please sign in to comment.