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