Class: TaxonNameRelationship::OriginalCombination

Inherits:
TaxonNameRelationship show all
Defined in:
app/models/taxon_name_relationship/original_combination.rb

Defined Under Namespace

Classes: OriginalForm, OriginalGenus, OriginalSection, OriginalSeries, OriginalSpecies, OriginalSubgenus, OriginalSubsection, OriginalSubseries, OriginalSubspecies, OriginalSubvariety, OriginalVariety

Class Method Summary collapse

Methods inherited from TaxonNameRelationship

#aliases, assignable, disjoint_object_classes, disjoint_subject_classes, disjoint_taxon_name_relationships, #is_combination?, #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

.nomenclatural_priorityObject



5
6
7
# File 'app/models/taxon_name_relationship/original_combination.rb', line 5

def self.nomenclatural_priority
  :reverse
end

.order_indexObject



9
10
11
# File 'app/models/taxon_name_relationship/original_combination.rb', line 9

def self.order_index
  RANKS.index(::ICN_LOOKUP[self.object_relationship_name.gsub('original ', '')])
end