Sha256: d41102465f83b878ba8c94ca6d1755792423540296a80ce0719a6289d88b06e0
Contents?: true
Size: 528 Bytes
Versions: 16
Compression:
Stored size: 528 Bytes
Contents
require_dependency "landable/application_controller" module Landable module Public class PagesController < ApplicationController respond_to :html self.responder = Landable::PageRenderResponder def show respond_with current_snapshot end private def current_page @current_page ||= Page.by_path(request.path) end def current_snapshot @current_snapshot ||= current_page.published_revision.try(:snapshot) or Page.missing end end end end
Version data entries
16 entries across 16 versions & 1 rubygems