Sha256: ee4924f830a62de25e0b2dddefd22d9d500ef3acebfe0e1422304889c35d1605
Contents?: true
Size: 627 Bytes
Versions: 6
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true class ::Tramway::Page::PreviewsController < ::Tramway::Page::ApplicationController include Tramway::AuthManagement layout 'tramway/landing/application' before_action :authenticate_admin! def show @page = ::Tramway::Page::Page.find params[:id] @blocks = @page.blocks.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
6 entries across 6 versions & 1 rubygems