Sha256: d6cd9a3abc8c73a3f015aacd2591f172311fd35d68711ab973ce34cb036358a4
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 Bytes
Contents
class Spina::PagesController < Spina::ApplicationController include Spina::Frontend before_action :current_spina_user_can_view_page?, except: [:robots] helper_method :page def homepage render_with_template(page) end private def current_spina_user_can_view_page? raise ActiveRecord::RecordNotFound unless current_spina_user.present? || page.live? end end
Version data entries
4 entries across 4 versions & 1 rubygems