Sha256: 9475e6e56709de582b26468a2b71c141942df19659843818d5a954de000c8023

Contents?: true

Size: 479 Bytes

Versions: 13

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module ManagesEmbargoes
    extend ActiveSupport::Concern

    included do
      attr_accessor :curation_concern
      helper_method :curation_concern
      load_and_authorize_resource class: ActiveFedora::Base, instance_name: :curation_concern
    end

    # This is an override of Hyrax::ApplicationController
    def deny_access(exception)
      redirect_to root_path, alert: exception.message
    end

    def edit; end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hyrax-3.4.2 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-4.0.0.beta1 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.4.1 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.4.0 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.3.0 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.2.0 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.1.0 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.0.2 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.0.1 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.0.0 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.0.0.pre.rc4 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.0.0.pre.rc3 app/controllers/concerns/hyrax/manages_embargoes.rb
hyrax-3.0.0.pre.rc2 app/controllers/concerns/hyrax/manages_embargoes.rb