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