app/controllers/tramway/page/pages_controller.rb in tramway-page-1.5.3.6 vs app/controllers/tramway/page/pages_controller.rb in tramway-page-1.5.3.7
- old
+ new
@@ -2,10 +2,9 @@
class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController
layout 'tramway/landing/application'
def show
- @application = ::Tramway::Core.application_object # FIXME: need to be in the Tramway::Core::ApplicationController
@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)