Class: FrontEndController

Inherits:
AuthenticationController show all
Defined in:
app/controllers/front_end_controller.rb

Instance Method Summary collapse

Methods inherited from AuthenticationController

#not_authenticated, #permission_denied, #try_return_to_previous_page

Instance Method Details

#load_blocksObject

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_dataObject



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_tagsObject



5
6
7
# File 'app/controllers/front_end_controller.rb', line 5

def meta_tags
  @description = @site_data.site_info.default_description
end