Skip to content

Commit

Permalink
Use the list_search_builder_class inherited from CurationConcerns
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 12, 2016
1 parent 78dc846 commit 2647557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/controllers/sufia/admin/admin_sets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Admin::AdminSetsController < ApplicationController
self.member_search_builder_class = Sufia::AdminSetMemberSearchBuilder

# Used to get a list of admin sets for the index action
class_attribute :list_search_builder_class
self.list_search_builder_class = CurationConcerns::AdminSetSearchBuilder

def show
Expand Down Expand Up @@ -71,7 +70,7 @@ def self.local_prefixes
private

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

Expand Down
3 changes: 1 addition & 2 deletions app/controllers/sufia/admin_sets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class AdminSetsController < ApplicationController
include CurationConcerns::CollectionsControllerBehavior
include Sufia::CollectionsControllerBehavior

class_attribute :list_search_builder_class
self.list_search_builder_class = CurationConcerns::AdminSetSearchBuilder

# Override the default prefixes so that we use the collection partals.
Expand All @@ -12,7 +11,7 @@ def _prefixes
end

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

0 comments on commit 2647557

Please sign in to comment.