Sha256: ecddc31347b7fe5f9993fa8547ecf117b87d9937c59d988637c7435ef57b6689
Contents?: true
Size: 657 Bytes
Versions: 18
Compression:
Stored size: 657 Bytes
Contents
module Spotlight ## # Exhibit home page class HomePage < Spotlight::Page extend FriendlyId friendly_id :title, use: [:slugged, :scoped, :finders], scope: [:exhibit, :locale] before_save :publish before_create :default_content class << self def default_title_text I18n.t('spotlight.pages.index.home_pages.title') end end def should_display_title? display_title? end def display_sidebar? display_sidebar end private def publish self.published = true end def default_content self.title ||= Spotlight::HomePage.default_title_text end end end
Version data entries
18 entries across 18 versions & 1 rubygems