Sha256: da1f9e4e0472de45cffa932a603a46949b608ded256f5498ff7183316b95983a

Contents?: true

Size: 452 Bytes

Versions: 6

Compression:

Stored size: 452 Bytes

Contents

module Worthwhile
  module ManagesEmbargoes
    extend ActiveSupport::Concern

    included do
      include Worthwhile::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


    def index
      authorize! :discover, :embargo
    end

    def edit
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worthwhile-0.1.2 app/controllers/concerns/worthwhile/manages_embargoes.rb
worthwhile-0.1.1 app/controllers/concerns/worthwhile/manages_embargoes.rb
worthwhile-0.1.0 app/controllers/concerns/worthwhile/manages_embargoes.rb
worthwhile-0.0.3 app/controllers/concerns/worthwhile/manages_embargoes.rb
worthwhile-0.0.2 app/controllers/concerns/worthwhile/manages_embargoes.rb
worthwhile-0.0.1 app/controllers/concerns/worthwhile/manages_embargoes.rb