Module: FileVersions
- Included in:
- DigitalObject, DigitalObjectComponent
- Defined in:
- backend/app/model/mixins/file_versions.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 |
# File 'backend/app/model/mixins/file_versions.rb', line 3 def self.included(base) base.one_to_many :file_version base.def_nested_record(:the_property => :file_versions, :contains_records_of_type => :file_version, :corresponding_to_association => :file_version) end |