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

Version Path
hyrax-2.9.6 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.9.5 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.9.4 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.9.3 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.9.2 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.9.1 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.9.0 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.8.0 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.7.2 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.7.1 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.7.0 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.6.0 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-3.0.0.pre.rc1 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-3.0.0.pre.beta3 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.5.1 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.5.0 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-3.0.0.pre.beta2 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.4.1 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-3.0.0.pre.beta1 app/controllers/concerns/hyrax/singular_subresource_controller.rb
hyrax-2.4.0 app/controllers/concerns/hyrax/singular_subresource_controller.rb