Sha256: ea0a9f1870969a1911f40c2ef184e340c9155bd22571353b7c0d4195d52f9964

Contents?: true

Size: 449 Bytes

Versions: 48

Compression:

Stored size: 449 Bytes

Contents

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

48 entries across 48 versions & 1 rubygems

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