Sha256: 16af629158e34dec29848a2900642b68539ca40c947042e0f61815fd6166c447

Contents?: true

Size: 295 Bytes

Versions: 5

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

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

    def root_page
      @root_page ||= root_pages.first
    end

    attr_reader :search_query, :search_category_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pages_core-3.14.0 app/helpers/pages_core/frontend_helper.rb
pages_core-3.13.0 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.7 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.6 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.5 app/helpers/pages_core/frontend_helper.rb