Sha256: 187aef2865ec66d66bf115eec7b35b9f25e164ea21d5aee279f6b27d1ddac47e

Contents?: true

Size: 820 Bytes

Versions: 10

Compression:

Stored size: 820 Bytes

Contents

module Hyrax
  class AdminSetsController < ApplicationController
    include Hyrax::CollectionsControllerBehavior

    self.presenter_class = Hyrax::AdminSetPresenter

    self.list_search_builder_class = Hyrax::AdminSetSearchBuilder
    # Used for the show action
    self.single_item_search_builder_class = Hyrax::SingleAdminSetSearchBuilder
    # Used to get the members for the show action
    self.member_search_builder_class = Hyrax::AdminSetMemberSearchBuilder

    # Override the default prefixes so that we use the collection partals.
    def self.local_prefixes
      ["hyrax/admin_sets", "hyrax/collections", 'catalog']
    end

    private

      # Overriding the way that the search builder is initialized
      def list_search_builder
        list_search_builder_class.new(self, :read)
      end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.1.0 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.5 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.4 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.3 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.2 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.1 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.0.rc2 app/controllers/hyrax/admin_sets_controller.rb
hyrax-1.0.0.rc1 app/controllers/hyrax/admin_sets_controller.rb
test_hyrax-0.0.1.alpha app/controllers/hyrax/admin_sets_controller.rb