Sha256: 8ea0eb37cc5edd328207592345822323c852fd68f8fc7a87f31d2a8060a63d4d
Contents?: true
Size: 500 Bytes
Versions: 24
Compression:
Stored size: 500 Bytes
Contents
# Generated via # `rails generate hyrax:work GenericWork` class GenericWork < ActiveFedora::Base include ::Hyrax::WorkBehavior self.indexer = GenericWorkIndexer # 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 end
Version data entries
24 entries across 24 versions & 1 rubygems