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

Version Path
hyrax-5.0.1 .dassie/app/models/generic_work.rb
hyrax-5.0.0 .dassie/app/models/generic_work.rb
hyrax-5.0.0.rc3 .dassie/app/models/generic_work.rb
hyrax-5.0.0.rc2 .dassie/app/models/generic_work.rb
hyrax-5.0.0.rc1 .dassie/app/models/generic_work.rb
hyrax-3.6.0 .dassie/app/models/generic_work.rb
hyrax-4.0.0 .dassie/app/models/generic_work.rb
hyrax-4.0.0.rc3 .dassie/app/models/generic_work.rb
hyrax-4.0.0.rc2 .dassie/app/models/generic_work.rb
hyrax-4.0.0.rc1 .dassie/app/models/generic_work.rb
hyrax-3.5.0 .dassie/app/models/generic_work.rb
hyrax-4.0.0.beta2 .dassie/app/models/generic_work.rb
hyrax-3.4.2 .dassie/app/models/generic_work.rb
hyrax-4.0.0.beta1 .dassie/app/models/generic_work.rb
hyrax-3.4.1 .dassie/app/models/generic_work.rb
hyrax-3.4.0 .dassie/app/models/generic_work.rb
hyrax-3.3.0 .dassie/app/models/generic_work.rb
hyrax-3.2.0 .dassie/app/models/generic_work.rb
hyrax-3.1.0 .dassie/app/models/generic_work.rb
hyrax-3.0.2 .dassie/app/models/generic_work.rb