Sha256: ee98acdb981451423aeb78356889917cc280ca51a64213a7036c67cc330bcddf
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 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 = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.active.where('values @> ?', { page: @page.id.to_s }.to_json) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-page-1.4 | app/controllers/tramway/page/pages_controller.rb |