fix parent_layout for HAML 6
This commit is contained in:
parent
3b1fa4da84
commit
cffb962194
|
@ -4,7 +4,6 @@ module LayoutsHelper
|
||||||
def parent_layout(layout)
|
def parent_layout(layout)
|
||||||
@view_flow.set(:layout, output_buffer)
|
@view_flow.set(:layout, output_buffer)
|
||||||
output = render(template: "layouts/#{layout}")
|
output = render(template: "layouts/#{layout}")
|
||||||
@haml_buffer.buffer.replace output
|
|
||||||
self.output_buffer = ActionView::OutputBuffer.new(output)
|
self.output_buffer = ActionView::OutputBuffer.new(output)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue