Module: ExternalDocuments

Included in:
Accession, AgentCorporateEntity, AgentFamily, AgentPerson, AgentSoftware, ArchivalObject, Assessment, DigitalObject, DigitalObjectComponent, Event, Resource, Subject
Defined in:
backend/app/model/mixins/external_documents.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'backend/app/model/mixins/external_documents.rb', line 3

def self.included(base)
  base.one_to_many(:external_document)

  base.def_nested_record(:the_property => :external_documents,
                         :contains_records_of_type => :external_document,
                         :corresponding_to_association  => :external_document)
end