Sha256: 7dab1ceb021c17b95d4e9a2be8b5db0f128897cb62cbbf33692e6f147591c6cf
Contents?: true
Size: 528 Bytes
Versions: 2
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) || Page.missing end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
landable-1.14.0 | app/controllers/landable/public/pages_controller.rb |
landable-1.13.2 | app/controllers/landable/public/pages_controller.rb |