app/controllers/spotlight/resources/upload_controller.rb in blacklight-spotlight-0.17.1 vs app/controllers/spotlight/resources/upload_controller.rb in blacklight-spotlight-0.18.0

- old
+ new

@@ -1,11 +1,11 @@ module Spotlight module Resources ## # Creating new exhibit items from single-item entry forms # or batch CSV upload - class UploadController < ApplicationController + class UploadController < Spotlight::ApplicationController helper :all before_action :authenticate_user! load_and_authorize_resource :exhibit, class: Spotlight::Exhibit @@ -20,14 +20,14 @@ if @resource.save_and_index flash[:notice] = t('spotlight.resources.upload.success') if params['add-and-continue'] redirect_to new_exhibit_resource_path(@resource.exhibit, anchor: :new_resources_upload) else - redirect_to admin_exhibit_catalog_index_path(@resource.exhibit, sort: :timestamp) + redirect_to admin_exhibit_catalog_path(@resource.exhibit, sort: :timestamp) end else flash[:error] = t('spotlight.resources.upload.error') - redirect_to admin_exhibit_catalog_index_path(@resource.exhibit, sort: :timestamp) + redirect_to admin_exhibit_catalog_path(@resource.exhibit, sort: :timestamp) end end # rubocop:enable Metrics/MethodLength private