Sha256: 086ff0fe8437604ab4c9275c094a189728824b85b9c86c466100c6adb17bc243
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# Generated via # `rails generate curate::collection <%= class_name %>` require 'active_fedora/base' class <%= class_name %> < ActiveFedora::Base include CurationConcern::BaseModelMixins include CurationConcern::WithGenericFiles include CurationConcern::WithAccessRight include CurationConcern::Embargoable has_metadata name: "descMetadata", type: <%= class_name %>MetadataDatastream, control_group: 'M' delegate_to( :descMetadata, [ :title, :created, :description, :date_uploaded, :date_modified, :available, :creator, :content_format, :identifier, :rights ], unique: true ) delegate_to( :descMetadata, [ :contributor, :publisher, :bibliographic_citation, :source, :language, :extent, :requires, :subject ] ) validates :title, presence: { message: 'Your thesis must have a title.' } validates :rights, presence: { message: 'You must select a license for your work.' } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curate-0.1.1 | lib/generators/curate/curation_concern/templates/curation_concern.rb.erb |