Class: TaxonNameRelationship::Iczn::PotentiallyValidating

Inherits:
TaxonNameRelationship::Iczn show all
Defined in:
app/models/taxon_name_relationship/iczn/potentially_validating.rb

Defined Under Namespace

Classes: FamilyBefore1961, FirstRevisorAction, ReinstatedName, ReplacementName

Class Method Summary collapse

Methods inherited from TaxonNameRelationship::Iczn

valid_object_ranks, valid_subject_ranks

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_taxon_name_relationships, #is_combination?, nomenclatural_priority, #object_properties, object_relationship_name, required_taxon_name_relationships, #subject_properties, subject_relationship_name, #type_class, #type_class=, #type_name, valid_object_ranks, valid_subject_ranks

Methods included from SoftValidation

#clear_soft_validations, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations

Methods included from Housekeeping

#has_polymorphic_relationship?

Class Method Details

.disjoint_object_classesObject



9
10
11
12
13
14
15
# File 'app/models/taxon_name_relationship/iczn/potentially_validating.rb', line 9

def self.disjoint_object_classes
  self.parent.disjoint_object_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Available::Valid) +
      self.collect_to_s(TaxonNameClassification::Iczn::Available::OfficialIndexOfAvailableNames,
          TaxonNameClassification::Iczn::Available::OfficialListOfAvailableNames,
          TaxonNameClassification::Iczn::Available::OfficialListOfWorksApprovedAsAvailable)
end

.disjoint_subject_classesObject



3
4
5
6
7
# File 'app/models/taxon_name_relationship/iczn/potentially_validating.rb', line 3

def self.disjoint_subject_classes
  self.parent.disjoint_subject_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Iczn::Unavailable) +
      [TaxonNameClassification::Iczn::Available::Invalid.to_s]
end