Class: Spotlight::FeaturePage
- Extended by:
- FriendlyId
- Defined in:
- app/models/spotlight/feature_page.rb
Overview
Feature pages
Constant Summary
Constants inherited from Page
Instance Method Summary collapse
Methods inherited from Page
#about_page?, #content=, #content?, #content_changed!, #feature_page?, #featured_image, #lock!, #should_display_title?, #should_generate_new_friendly_id?, #to_partial_path, #top_level_page?, #top_level_page_or_self
Instance Method Details
#display_sidebar? ⇒ Boolean
20 21 22 |
# File 'app/models/spotlight/feature_page.rb', line 20 def child_pages.published.present? || end |
#thumbnail_image_url ⇒ Object
24 25 26 |
# File 'app/models/spotlight/feature_page.rb', line 24 def thumbnail_image_url thumbnail.image.thumb.url if thumbnail && thumbnail.image end |