Module: LangMaterials
- Included in:
- Accession, ArchivalObject, DigitalObject, DigitalObjectComponent, Resource
- Defined in:
- backend/app/model/mixins/lang_materials.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'backend/app/model/mixins/lang_materials.rb', line 3 def self.included(base) require_relative '../lang_material' base.one_to_many(:lang_material) LangMaterial.many_to_one base.table_name base.def_nested_record(:the_property => :lang_materials, :contains_records_of_type => :lang_material, :corresponding_to_association => :lang_material) end |