Sha256: 65b6ebcd9a61efe96a5a6608f151ff0e2795327c98db5a2d739dbb8f659df8aa
Contents?: true
Size: 479 Bytes
Versions: 14
Compression:
Stored size: 479 Bytes
Contents
# Generated via # `rails generate hyrax:work Work` class Work < ActiveFedora::Base include ::Hyrax::WorkBehavior self.indexer = WorkIndexer # 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
14 entries across 14 versions & 1 rubygems