From cffb9621940b9c3535c4be8855dae0a97285ba5a Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Tue, 25 Oct 2022 19:35:53 +0200 Subject: [PATCH] fix parent_layout for HAML 6 --- app/helpers/layouts_helper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/helpers/layouts_helper.rb b/app/helpers/layouts_helper.rb index cc924fae..e9025c2b 100644 --- a/app/helpers/layouts_helper.rb +++ b/app/helpers/layouts_helper.rb @@ -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