Sha256: 9041fb3505267d3a8748fc39f78302dba7b7c942cca6fbb4909b3c4e41a5c209

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

module PagesCore
  module PageModel
    module Searchable
      extend ActiveSupport::Concern

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pages_core-3.15.4 app/models/concerns/pages_core/page_model/searchable.rb
pages_core-3.15.3 app/models/concerns/pages_core/page_model/searchable.rb
pages_core-3.15.2 app/models/concerns/pages_core/page_model/searchable.rb
pages_core-3.15.1 app/models/concerns/pages_core/page_model/searchable.rb
pages_core-3.14.0 app/models/concerns/pages_core/page_model/searchable.rb
pages_core-3.13.0 app/models/concerns/pages_core/page_model/searchable.rb