app/models/logging/curator_activity_log.rb
# There are a few types of CuratorActivityLogs that only notify their taxon concepts:
There are a few types of CuratorActivityLogs that only notify their taxon concepts.
There are a few types of CuratorActivityLogs that only notify their taxon concepts .
def add_recipient_taxon_concepts(recipients)
    if self.is_for_type?(:synonym) ||
       self.is_for_type?(:curated_taxon_concept_preferred_entry) ||
       self.is_for_type?(:taxon_concept)
      add_taxon_concept_recipients(self.taxon_concept, recipients)
      add_taxon_concept_recipients(TaxonConcept.find(self.target_id), recipients) if
        self.is_for_type?(:taxon_concept)
    end
    if self.is_for_type?(:classification_curation) &&
       self.activity_id == Activity.curate_classifications.id &&
       cc = self.classification_curation
      add_taxon_concept_recipients(cc.moved_from, recipients) if cc.moved_from
      add_taxon_concept_recipients(cc.moved_to, recipients) if cc.moved_to
    end
    if self.is_for_type?(:data_point_uri) ||
       self.is_for_type?(:user_added_data)
      add_taxon_concept_recipients(self.taxon_concept, recipients)
    end
  end
def add_recipient_taxon_concepts ( recipients ) if self . is_for_type? ( :synonym ) || self . is_for_type? ( :curated_taxon_concept_preferred_entry ) || self . is_for_type? ( :taxon_concept ) add_taxon_concept_recipients ( self . taxon_concept , recipients ) add_taxon_concept_recipients ( TaxonConcept . find ( self . target_id ) , recipients ) if self . is_for_type? ( :taxon_concept ) end if self . is_for_type? ( :classification_curation ) && self . activity_id == Activity . curate_classifications . id && cc = self . classification_curation add_taxon_concept_recipients ( cc . moved_from , recipients ) if cc . moved_from add_taxon_concept_recipients ( cc . moved_to , recipients ) if cc . moved_to end if self . is_for_type? ( :data_point_uri ) || self . is_for_type? ( :user_added_data ) add_taxon_concept_recipients ( self . taxon_concept , recipients ) end end
There are a few types of CuratorActivityLogs that only notify their taxon concepts:
There are a few types of CuratorActivityLogs that only notify their taxon concepts :
recipients
<not_specific>