mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:29:52 +01:00
10 lines
285 B
Ruby
10 lines
285 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|