Sha256: 32b96b505dc0cc429ae556b42a81a2586f153255ba47c5788f17b313a82d6278
Contents?: true
Size: 320 Bytes
Versions: 20
Compression:
Stored size: 320 Bytes
Contents
class Spina::PagesController < Spina::ApplicationController include Spina::Frontend before_action :authorize_page helper_method :page def homepage render_with_template(page) end private def authorize_page raise ActiveRecord::RecordNotFound unless page.live? || logged_in? end end
Version data entries
20 entries across 20 versions & 1 rubygems