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

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