Class: CaTissue::AbstractSpecimenCollectionGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/catissue/domain/abstract_specimen_collection_group.rb

Instance Method Summary collapse

Instance Method Details

#each_dependentObject

Overrides Jinx::Resource.each_dependent to exclude Specimens or SpecimenRequirements with a parent, since the parent is the immediate Specimen or SpecimenRequirement owner.



22
23
24
# File 'lib/catissue/domain/abstract_specimen_collection_group.rb', line 22

def each_dependent
  super { |dep| yield dep unless AbstractSpecimen === dep and dep.parent }
end