Module: CollectionManagements

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)
  base.one_to_one :collection_management

  base.def_nested_record(:the_property => :collection_management,
                         :contains_records_of_type => :collection_management,
                         :corresponding_to_association  => :collection_management,
                         :is_array => false)
end