Sha256: 6c8bbfaa22665c86796fe5720f29775aa1b9dcfaacdd73a45b286a305bfb58ec
Contents?: true
Size: 619 Bytes
Versions: 4
Compression:
Stored size: 619 Bytes
Contents
module CurationConcerns class AdminSetService attr_reader :context # @param [#repository,#blacklight_config,#current_ability] context def initialize(context) @context = context end # @param [Symbol] access :read or :edit def select_options(access = :read) search_results(access).map do |element| [element.to_s, element.id] end end # @param [Symbol] access :read or :edit def search_results(access) builder = AdminSetSearchBuilder.new(context, access) response = context.repository.search(builder) response.documents end end end
Version data entries
4 entries across 4 versions & 1 rubygems