UNC-Libraries/hy-c

View on GitHub
app/controllers/hyrax/artworks_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Generated via
#  `rails generate hyrax:work Artwork`
module Hyrax
  # Generated controller for Artwork
  class ArtworksController < HycController
    self.curation_concern_type = ::Artwork

    # Use this line if you want to use a custom presenter
    self.show_presenter = Hyrax::ArtworkPresenter

    before_action :ensure_admin!, only: :destroy
    before_action :ensure_admin_set!, only: [:create, :new, :edit, :update]
  end
end