sul-dlss/argo

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

Summary

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

module BulkActions
  class RightsJobsController < ApplicationController
    include CreatesBulkActions
    self.action_type = 'SetRightsJob'

    def job_params
      super.merge(params.slice(:view_access, :download_access, :controlled_digital_lending,
                               :access_location).to_unsafe_h)
    end
  end
end