Module: CurationConcern::WithGenericFiles
- Extended by:
- ActiveSupport::Concern
- Included in:
- Article, Dataset, Etd, GenericWork, Image
- Defined in:
- app/repository_models/curation_concern/with_generic_files.rb
Instance Method Summary collapse
Instance Method Details
#after_destroy_cleanup_generic_files ⇒ Object
11 12 13 |
# File 'app/repository_models/curation_concern/with_generic_files.rb', line 11 def after_destroy_cleanup_generic_files generic_files.each(&:destroy) end |
#representative_generic_file_object ⇒ Object
15 16 17 18 |
# File 'app/repository_models/curation_concern/with_generic_files.rb', line 15 def representative_generic_file_object return nil if self.representative.nil? @representative_generic_file_object ||= GenericFile.find(self.representative) end |