diff --git a/app/controllers/hyrax/batch_uploads_controller.rb b/app/controllers/hyrax/batch_uploads_controller.rb index ee00c1836b..292ea3170f 100644 --- a/app/controllers/hyrax/batch_uploads_controller.rb +++ b/app/controllers/hyrax/batch_uploads_controller.rb @@ -5,7 +5,11 @@ class BatchUploadsController < ApplicationController include Hyrax::WorksControllerBehavior # Gives the class of the form. - class BatchUploadFormService < Hyrax::WorkFormService + class BatchUploadFormService + def self.build(resource, current_ability, *extra) + form_class.new(resource, current_ability, *extra) + end + def self.form_class(_ = nil) ::Hyrax::Forms::BatchUploadForm end diff --git a/spec/services/hyrax/work_form_service_spec.rb b/spec/services/hyrax/work_form_service_spec.rb index b4299ca0d6..f286ea5828 100644 --- a/spec/services/hyrax/work_form_service_spec.rb +++ b/spec/services/hyrax/work_form_service_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -RSpec.describe Hyrax::WorkFormService do +RSpec.describe Hyrax::WorkFormService, :active_fedora do subject(:form_service) { described_class } let(:work) { GenericWork.new }