Sha256: d0bdf7b3b3b39afd8bba60bca966e992d4a662b1506d84991a68265dae44585a

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

class ContentModel < ActiveFedora::Base

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

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

  belongs_to :admin_policy, :property => :is_governed_by

  include Hydra::ModelMixins::RightsMetadata

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.2 spec/internal/app/models/content_model.rb
fcrepo_admin-0.3.1 spec/internal/app/models/content_model.rb
fcrepo_admin-0.3.0 spec/internal/app/models/content_model.rb
fcrepo_admin-0.2.4 spec/internal/app/models/content_model.rb
fcrepo_admin-0.2.3 spec/internal/app/models/content_model.rb
fcrepo_admin-0.2.0 spec/internal/app/models/content_model.rb