sul-dlss/argo

View on GitHub
app/controllers/bulk_actions/import_tag_jobs_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
83%
# frozen_string_literal: true

module BulkActions
  class ImportTagJobsController < ApplicationController
    include CreatesBulkActions
    self.action_type = 'ImportTagsJob'

    def job_params
      { groups: current_user.groups, csv_file: CsvUploadNormalizer.read(params[:csv_file].path) }
    end
  end
end