Sha256: 5e9581fa8c769cac0068adcc5be6d34f3afabf14c2cfefaf88667e536c36beff
Contents?: true
Size: 668 Bytes
Versions: 24
Compression:
Stored size: 668 Bytes
Contents
# Generated via # `rails generate hyrax:work NamespacedWorks::NestedWork` class NamespacedWorks::NestedWork < ActiveFedora::Base property :created, predicate: ::RDF::Vocab::DC.created, class_name: TimeSpan include ::Hyrax::WorkBehavior self.indexer = NamespacedWorks::NestedWorkIndexer # Change this to restrict which works can be added as a child. # self.valid_child_concerns = [] validates :title, presence: { message: 'Your work must have a title.' } # This must be included at the end, because it finalizes the metadata # schema (by adding accepts_nested_attributes) include ::Hyrax::BasicMetadata accepts_nested_attributes_for :created end
Version data entries
24 entries across 24 versions & 1 rubygems