fix parent_layout for HAML 6

This commit is contained in:
Georg Gadinger 2022-10-25 19:35:53 +02:00
parent 3b1fa4da84
commit cffb962194
1 changed files with 0 additions and 1 deletions

View File

@ -4,7 +4,6 @@ module LayoutsHelper
def parent_layout(layout)
@view_flow.set(:layout, output_buffer)
output = render(template: "layouts/#{layout}")
@haml_buffer.buffer.replace output
self.output_buffer = ActionView::OutputBuffer.new(output)
end
end