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
-
#search_query ⇒ Object
readonly
Returns the value of attribute search_query.
Instance Method Summary collapse
Methods included from HeadTagsHelper
#document_title_tag, #head_tag, #meta_image_url, #pages_meta_tags
Methods included from FeedTagsHelper
Instance Attribute Details
#search_query ⇒ Object (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_page ⇒ Object
12 13 14 |
# File 'app/helpers/pages_core/frontend_helper.rb', line 12 def root_page @root_page ||= root_pages.first end |
#root_pages ⇒ Object
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 |