Sha256: 17c6e1e45bd6e00cd0119f0a7a27f1514324dfca739f76969f4415c7ff8004f3

Contents?: true

Size: 566 Bytes

Versions: 21

Compression:

Stored size: 566 Bytes

Contents

module CurationConcerns
  module ManagesEmbargoes
    extend ActiveSupport::Concern

    included do
      include CurationConcerns::ThemedLayoutController
      with_themed_layout '1_column'

      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 CurationConcerns::ApplicationController
    def deny_access(exception)
      redirect_to root_path, alert: exception.message
    end

    def edit
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.7 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-2.0.0 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-2.0.0.rc2 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.6 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.5 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.4 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.3 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.2 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-2.0.0.rc1 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.1 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.0 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.7.0.beta1 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.6.3 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.6.2 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.6.1 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.6.0 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.5.0 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.4.0 app/controllers/concerns/curation_concerns/manages_embargoes.rb
curation_concerns-1.3.3 app/controllers/concerns/curation_concerns/manages_embargoes.rb