Module: Mascot::SitePages
- Extended by:
- ActiveSupport::Concern
- Included in:
- SiteController
- Defined in:
- app/controllers/concerns/mascot/site_pages.rb
Overview
Serves up Mascot site pages in a rails application. This is mixed into the Mascot::SiteController, but may be included into other controllers for static page behavior.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/concerns/mascot/site_pages.rb', line 13 def show render inline: current_page.body, type: current_page.asset.template_extensions.last, layout: current_page.data.fetch("layout", controller_layout), content_type: current_page.mime_type.to_s end |