Sha256: e233460b39112064fbe5f5184bc794e40f3c5dc7baf31f3413a39f49a0ef83e4
Contents?: true
Size: 291 Bytes
Versions: 6
Compression:
Stored size: 291 Bytes
Contents
module CurationConcern module WithGenericFiles extend ActiveSupport::Concern included do has_many :generic_files, property: :is_part_of after_destroy :after_destroy_cleanup end def after_destroy_cleanup generic_files.each(&:destroy) end end end
Version data entries
6 entries across 6 versions & 1 rubygems