Module: PagesCore::FrontendHelper
- Included in:
- FrontendHelper, PagesCore::Frontend::PagesController
- Defined in:
- app/helpers/pages_core/frontend_helper.rb
Instance Attribute Summary collapse
-
#search_category_id ⇒ Object
readonly
Returns the value of attribute search_category_id.
-
#search_query ⇒ Object
readonly
Returns the value of attribute search_query.
Instance Method Summary collapse
Instance Attribute Details
#search_category_id ⇒ Object (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_query ⇒ Object (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_page ⇒ Object
9 10 11 |
# File 'app/helpers/pages_core/frontend_helper.rb', line 9 def root_page @root_page ||= root_pages.first end |
#root_pages ⇒ Object
5 6 7 |
# File 'app/helpers/pages_core/frontend_helper.rb', line 5 def root_pages @root_pages ||= Page.roots.localized(@locale).published end |