Sha256: 72ec259bac5beb1f6df66ba04632ee1292cd9f299e3d0adf181a08abfb0896c0
Contents?: true
Size: 403 Bytes
Versions: 8
Compression:
Stored size: 403 Bytes
Contents
module Sufia::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 = CurationConcerns::WorkRelation.new.find(params[:id]) end end
Version data entries
8 entries across 8 versions & 1 rubygems