app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-2.7.2 vs app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-2.8.0
- old
+ new
@@ -2,11 +2,10 @@
module Spotlight
##
# CRUD actions for curating browse categories (see
# {Spotlight::BrowseController} for the end-user read and index actions)
- # rubocop:disable Metrics/ClassLength
class SearchesController < Spotlight::ApplicationController
load_resource :exhibit, class: 'Spotlight::Exhibit'
before_action :authenticate_user!
before_action :only_curators!
before_action :create_or_load_resource, only: [:create]
@@ -140,7 +139,6 @@
def create_or_load_resource
@search = current_exhibit.searches.find(params[:id]) if params[:id].present?
end
end
- # rubocop:enable Metrics/ClassLength
end