Sha256: 3955f7b603754146df3e8ef21513af53124768a185c1b6106631eaa9c571f212
Contents?: true
Size: 456 Bytes
Versions: 25
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: true module Hyrax module SingularSubresourceController extend ActiveSupport::Concern include DenyAccessOverrideBehavior included do before_action :find_work, only: :work load_and_authorize_resource :work, only: :work load_and_authorize_resource :file, class: 'FileSet', only: :file, id_param: :id end def find_work @work = Hyrax::WorkRelation.new.find(params[:id]) end end end
Version data entries
25 entries across 25 versions & 1 rubygems