Sha256: cd23049b22656087d7dc9021146e4997beb85ec625e334709cb46c606feba043
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 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] binding.pry @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tramway-page-1.5.3 | app/controllers/tramway/page/pages_controller.rb |
tramway-page-1.5.2.3 | app/controllers/tramway/page/pages_controller.rb |