Module: PagesCore::FrontendHelper

Includes:
FeedTagsHelper, HeadTagsHelper
Included in:
FrontendHelper, PagesCore::Frontend::PagesController
Defined in:
app/helpers/pages_core/frontend_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HeadTagsHelper

#document_title_tag, #head_tag, #meta_image_url, #pages_meta_tags

Methods included from FeedTagsHelper

#feed_tags

Instance Attribute Details

#search_queryObject (readonly)

Returns the value of attribute search_query.



16
17
18
# File 'app/helpers/pages_core/frontend_helper.rb', line 16

def search_query
  @search_query
end

Instance Method Details

#root_pageObject



12
13
14
# File 'app/helpers/pages_core/frontend_helper.rb', line 12

def root_page
  @root_page ||= root_pages.first
end

#root_pagesObject



8
9
10
# File 'app/helpers/pages_core/frontend_helper.rb', line 8

def root_pages
  @root_pages ||= Page.roots.localized(content_locale).published
end