Sha256: daf54fe403a291873a311308c88b2195d0b4f60293396006959c1cbfbaf0b34e

Contents?: true

Size: 419 Bytes

Versions: 10

Compression:

Stored size: 419 Bytes

Contents

# Generated via
#  `rails generate hyrax:work <%= class_name %>`
class <%= class_name %> < ActiveFedora::Base
  include ::Hyrax::WorkBehavior
  include ::Hyrax::BasicMetadata
  # 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.' }
  
  self.human_readable_type = '<%= name.underscore.titleize %>'
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.1.0 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.5 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.4 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.3 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.2 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.1 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.0.rc2 lib/generators/hyrax/work/templates/model.rb.erb
hyrax-1.0.0.rc1 lib/generators/hyrax/work/templates/model.rb.erb
test_hyrax-0.0.1.alpha lib/generators/hyrax/work/templates/model.rb.erb