mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 09:49:17 +01:00
fix parent_layout for HAML 6
This commit is contained in:
parent
3b1fa4da84
commit
cffb962194
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue