Sha256: 0ec40c06a096346b29972b8ed3c479f62161e9342287aff7eeb3d7542dc7acf5
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController layout 'tramway/landing/application' def show @page = ::Tramway::Page::Page.find_by slug: params[:slug] @blocks = @page.blocks.active.map do |block| if block.block_type.header_with_form? && block.form_url.present? # FIXME in future @header_with_form = block.form_to_render.new(Tramway::Auth.authenticable_models.first.new) end ::Tramway::Landing::BlockDecorator.decorate block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-page-1.4.1 | app/controllers/tramway/page/pages_controller.rb |