Sha256: c191ed952d5536503fa1c21cdafb7e7e70dc5a57cc107f9f0b8219273d0afb56

Contents?: true

Size: 288 Bytes

Versions: 19

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

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

    def root_page
      @root_page ||= root_pages.first
    end

    attr_reader :search_query, :search_category_id
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pages_core-3.12.4 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.3 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.2 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.1 app/helpers/pages_core/frontend_helper.rb
pages_core-3.12.0 app/helpers/pages_core/frontend_helper.rb
pages_core-3.11.3 app/helpers/pages_core/frontend_helper.rb
pages_core-3.11.2 app/helpers/pages_core/frontend_helper.rb
pages_core-3.11.1 app/helpers/pages_core/frontend_helper.rb
pages_core-3.11.0 app/helpers/pages_core/frontend_helper.rb
pages_core-3.10.2 app/helpers/pages_core/frontend_helper.rb
pages_core-3.10.1 app/helpers/pages_core/frontend_helper.rb
pages_core-3.9.2 app/helpers/pages_core/frontend_helper.rb
pages_core-3.9.1 app/helpers/pages_core/frontend_helper.rb
pages_core-3.9.0 app/helpers/pages_core/frontend_helper.rb
pages_core-3.8.3 app/helpers/pages_core/frontend_helper.rb
pages_core-3.8.2 app/helpers/pages_core/frontend_helper.rb
pages_core-3.8.1 app/helpers/pages_core/frontend_helper.rb
pages_core-3.8.0 app/helpers/pages_core/frontend_helper.rb
pages_core-3.7.0 app/helpers/pages_core/frontend_helper.rb