Module: PagesCore::FrontendHelper

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#search_category_idObject (readonly)

Returns the value of attribute search_category_id.



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

def search_category_id
  @search_category_id
end

#search_queryObject (readonly)

Returns the value of attribute search_query.



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

def search_query
  @search_query
end

Instance Method Details

#root_pageObject



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

def root_page
  @root_page ||= root_pages.first
end

#root_pagesObject



5
6
7
# File 'app/helpers/pages_core/frontend_helper.rb', line 5

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