Sha256: cd21eb01107c3849e1ad16154a17dd90be4737905dd124222bce03196df13ceb

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module PagesCore
  module PageModel
    module Searchable
      extend ActiveSupport::Concern

      def search_document_attributes
        super.merge(
          published: published? && !skip_index?,
          name:,
          description: try(&:meta_description?) ? meta_description : excerpt,
          # content: "",
          tags: tag_names.join(" ")
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/models/concerns/pages_core/page_model/searchable.rb