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


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

def search_query
  @search_query
end

Instance Method Details

#root_pageObject


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

def root_page
  @root_page ||= root_pages.first
end

#root_pagesObject


3
4
5
# File 'app/helpers/pages_core/frontend_helper.rb', line 3

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