Sha256: 53e7e71c65d21f517f47e8fa7c2ad5838a00b15e905be8d57ced015216910905
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
require_dependency "simplec/application_controller" module Simplec class PagesController < ApplicationController def show @page = page("/#{params[:path]}") render layout: layout(@page) end private def layout(page) [page.layout, page.subdomain.default_layout, 'public']. # TODO allow config for public reject(&:blank?).first end end end
Version data entries
4 entries across 4 versions & 1 rubygems