sul-dlss/argo

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module BulkActions
  class GoverningApoJobsController < ApplicationController
    include CreatesBulkActions
    self.action_type = 'SetGoverningApoJob'

    def new
      @apo_list = AdminPolicyOptions.for(current_user)
      super
    end

    def job_params
      super.merge(new_apo_id: params[:new_apo_id])
    end
  end
end