app/controllers/bulk_actions/import_structural_jobs_controller.rb
# frozen_string_literal: true
module BulkActions
class ImportStructuralJobsController < ApplicationController
include CreatesBulkActions
self.action_type = 'ImportStructuralJob'
def job_params
{ groups: current_user.groups, csv_file: CsvUploadNormalizer.read(params[:csv_file].path) }
end
def validate_job_params(job_params)
validate_csv_headers(job_params.fetch(:csv_file), ['druid'])
end
end
end