Sha256: 6b0f0fc038dbd109acd63f4378c973e425f3d0fff4b7087a9eac71d08018494d
Contents?: true
Size: 426 Bytes
Versions: 58
Compression:
Stored size: 426 Bytes
Contents
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
58 entries across 58 versions & 2 rubygems