Module: MetadataRights

Included in:
Accession, DigitalObject, Resource, Subject
Defined in:
backend/app/model/mixins/metadata_rights.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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

  base.def_nested_record(:the_property => :metadata_rights_declarations,
                         :contains_records_of_type => :metadata_rights_declaration,
                         :corresponding_to_association  => :metadata_rights_declaration)
end