app/controllers/hyrax/generic_works_controller.rb
# frozen_string_literal: true
# Generated via
# `rails generate hyrax:work_resource GenericWork`
module Hyrax
# Generated controller for GenericWork
class GenericWorksController < ApplicationController
# Adds Hyrax behaviors to the controller.
include Hyrax::WorksControllerBehavior
include Hyrax::BreadcrumbsForWorks
self.curation_concern_type = ::GenericWork
# Use a Valkyrie aware form service to generate Valkyrie::ChangeSet style
# forms.
self.work_form_service = Hyrax::FormFactory.new
end
end