Sha256: 192930aab8c82c4590168a2cd4b9b1d74edbdda39ce09474de77ff930da54faa
Contents?: true
Size: 692 Bytes
Versions: 8
Compression:
Stored size: 692 Bytes
Contents
# frozen_string_literal: true module Hyrax class RestrictionService class << self ## # @note needed to construct SearchBuilders using self in Blacklight 7+ delegate :blacklight_config, to: :config private def presenter_class raise "RestrictionService is an Abstract class and should be extended. Implement presenter_class in the subclass" end def presenters(builder) response = repository.search(builder) response.documents.map { |d| presenter_class.new(d) } end def repository config.repository end def config @config ||= ::CatalogController.new end end end end
Version data entries
8 entries across 8 versions & 1 rubygems