app/models/logging/curator_activity_log.rb
# Needed for rendering "reply" links; we need to know which association to make the link to
Needed for rendering "reply" links; we need to know which association to make the link to
Needed for rendering " reply " links ; we need to know which association to make the link to
def link_to
    case changeable_object_type_id
      when ChangeableObjectType.comment.id
        comment_object.parent
      when ChangeableObjectType.synonym.id
        if synonym && synonym.hierarchy_entry
          synonym.hierarchy_entry.taxon_concept
        else
          taxon_concept 
        end
      when ChangeableObjectType.taxon_concept.id
        taxon_concept
      when ChangeableObjectType.classification_curation.id
        taxon_concept
      when ChangeableObjectType.curated_taxon_concept_preferred_entry.id
        taxon_concept
      when ChangeableObjectType.data_point_uri.id
        data_point_uri
      when ChangeableObjectType.user_added_data.id
        user_added_data.data_point_uri
      when ChangeableObjectType.resource_validation.id
        resource
      else
        data_object
    end
  end
def link_to case changeable_object_type_id when ChangeableObjectType . comment . id comment_object . parent when ChangeableObjectType . synonym . id if synonym && synonym . hierarchy_entry synonym . hierarchy_entry . taxon_concept else taxon_concept end when ChangeableObjectType . taxon_concept . id taxon_concept when ChangeableObjectType . classification_curation . id taxon_concept when ChangeableObjectType . curated_taxon_concept_preferred_entry . id taxon_concept when ChangeableObjectType . data_point_uri . id data_point_uri when ChangeableObjectType . user_added_data . id user_added_data . data_point_uri when ChangeableObjectType . resource_validation . id resource else data_object end end
Needed for rendering "reply" links; we need to know which association to make the link to
Needed for rendering " reply " links ; we need to know which association to make the link to
# could be nil, be careful!