app/controllers/spotlight/resources/upload_controller.rb in blacklight-spotlight-3.6.0.beta7 vs app/controllers/spotlight/resources/upload_controller.rb in blacklight-spotlight-3.6.0.beta8
- old
+ new
@@ -7,10 +7,10 @@
# or batch CSV upload
class UploadController < Spotlight::ApplicationController
helper :all
before_action :authenticate_user!
- before_action :set_tab, only: %i[new create]
+ before_action :set_tab, only: %i[create]
load_and_authorize_resource :exhibit, class: Spotlight::Exhibit
before_action :build_resource
load_and_authorize_resource class: 'Spotlight::Resources::Upload', through_association: 'exhibit.resources', instance_name: 'resource'