Retrospring/app/helpers/layouts_helper.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
246 B
Ruby
Raw Normal View History

2020-04-25 08:02:59 -07:00
# frozen_string_literal: true
module LayoutsHelper
def parent_layout(layout)
@view_flow.set(:layout, output_buffer)
2022-01-11 17:24:38 -08:00
output = render(template: "layouts/#{layout}")
2020-04-25 08:02:59 -07:00
self.output_buffer = ActionView::OutputBuffer.new(output)
end
2020-05-08 19:39:09 -07:00
end