Sha256: 1b5907e5e36b8d76f8eb3e083901f56f289d940fafd331179d87050630e10433

Contents?: true

Size: 519 Bytes

Versions: 11

Compression:

Stored size: 519 Bytes

Contents

class Collection < 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
  has_many :members, :property => :is_member_of_collection, :inbound => true, :class_name => 'Item'

  include Hydra::ModelMixins::RightsMetadata
  include ActiveFedora::Auditable

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fcrepo_admin-0.6.1 spec/internal/app/models/collection.rb
fcrepo_admin-0.6.0 spec/internal/app/models/collection.rb
fcrepo_admin-0.5.5 spec/internal/app/models/collection.rb
fcrepo_admin-0.5.5.pre spec/internal/app/models/collection.rb
fcrepo_admin-0.5.4 spec/internal/app/models/collection.rb
fcrepo_admin-0.5.3 spec/internal/app/models/collection.rb
fcrepo_admin-0.5.2 spec/internal/app/models/collection.rb
fcrepo_admin-0.5.1 spec/internal/app/models/collection.rb
fcrepo_admin-0.5.0 spec/internal/app/models/collection.rb
fcrepo_admin-0.4.1 spec/internal/app/models/collection.rb
fcrepo_admin-0.4.0 spec/internal/app/models/collection.rb