thoughtbot / props_template

A very fast json builder for Rails
MIT License
145 stars 4 forks source link

Fix issue with templates that don't have a virtual_path #19

Closed jho406 closed 5 months ago

jho406 commented 5 months ago

The layout patch needed to account for inline renders like render(plain: "hello") or send_data that don't have a virtual path.

Without this fix, applications using props_template were throwing:

undefined method 'virtual_path' for an instance of ActionView::Template::Text