Sha256: d678717d12d8c2f1378583bd2d4f2f411bce8c62cf763257d25bcdc3b7ed0c87
Contents?: true
Size: 604 Bytes
Versions: 22
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Hyrax ## # Indexes visibility of the resource; Blacklight depends on visibility being # present in the index to determine visibility of results and object show # views. # # @example # class MyIndexer < Hyrax::ValkyrieIndexer # include Hyrax::VisibilityIndexer # end module VisibilityIndexer def to_solr super.tap do |index_document| index_document[:visibility_ssi] = visibility_reader.read end end private def visibility_reader Hyrax::VisibilityReader.new(resource: resource) end end end
Version data entries
22 entries across 22 versions & 1 rubygems