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