Sha256: d94833492767fc4a054d607939dd31f1bac0ebffb983a429455be6982194ae2b

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

class ContentModel < ActiveFedora::Base

  has_metadata :name => "descMetadata", :type => ActiveFedora::QualifiedDublinCoreDatastream
  has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata

  delegate :title, :to => "descMetadata", :unique => true

  belongs_to :admin_policy, :property => :is_governed_by

  include Hydra::ModelMixins::RightsMetadata

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fcrepo_admin-0.1.1 spec/internal/app/models/content_model.rb
fcrepo_admin-0.1.0 spec/internal/app/models/content_model.rb