Class: Spotlight::HomePage

Inherits:
Page
  • Object
show all
Defined in:
app/models/spotlight/home_page.rb

Constant Summary

Constants inherited from Page

Page::MAX_PAGES

Instance Method Summary collapse

Methods inherited from Page

#about_page?, #feature_page?, #to_partial_path, #top_level_page?, #top_level_page_or_self

Instance Method Details

#title_or_defaultObject



6
7
8
# File 'app/models/spotlight/home_page.rb', line 6

def title_or_default
  title.present? ? title : I18n.t('spotlight.pages.index.home_pages.title')
end