mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 00:56:05 +01:00
9 lines
246 B
Ruby
9 lines
246 B
Ruby
# frozen_string_literal: true
|
|
|
|
module LayoutsHelper
|
|
def parent_layout(layout)
|
|
@view_flow.set(:layout, output_buffer)
|
|
output = render(template: "layouts/#{layout}")
|
|
self.output_buffer = ActionView::OutputBuffer.new(output)
|
|
end
|
|
end
|