Sha256: 8ef02d0a9c25d6f7eba8d83152c95547b419e89bf716c71bd7dea54874437d92
Contents?: true
Size: 589 Bytes
Versions: 5
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController layout 'tramway/landing/application' def show @page = ::Tramway::Page::Page.published.find_by slug: params[:slug] @blocks = @page.blocks.published.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, page: @page.id) end ::Tramway::Landing::BlockDecorator.decorate block end end end
Version data entries
5 entries across 5 versions & 1 rubygems