Class: FrontEndController
- Inherits:
-
AuthenticationController
- Object
- ActionController::Base
- AuthenticationController
- FrontEndController
- Defined in:
- app/controllers/front_end_controller.rb
Direct Known Subclasses
FrontEnd::PageController, FrontEnd::PostController, FrontEnd::SitemapController
Instance Method Summary collapse
-
#load_blocks ⇒ Object
Loads blocks and groups them by position in the layout.
- #load_sitewide_data ⇒ Object
- #meta_tags ⇒ Object
Methods inherited from AuthenticationController
#not_authenticated, #permission_denied, #try_return_to_previous_page
Instance Method Details
#load_blocks ⇒ Object
Loads blocks and groups them by position in the layout
10 11 12 |
# File 'app/controllers/front_end_controller.rb', line 10 def load_blocks @blocks = Dust::Block.find_active(request.fullpath) end |
#load_sitewide_data ⇒ Object
14 15 16 |
# File 'app/controllers/front_end_controller.rb', line 14 def load_sitewide_data @site_data = Dust::SiteWide.all_to_object end |
#meta_tags ⇒ Object
5 6 7 |
# File 'app/controllers/front_end_controller.rb', line 5 def @description = @site_data.site_info.default_description end |