app/models/taxon_overview.rb
# NOTE - It should be "relatively impossible" for this to be nil. ...At least, TCs with no identifyable
# entry should at least be unpublished (and thus not accessible on the site).
It should be "relatively impossible" for this to be nil. ...At least, TCs with no identifyable
entry should at least be unpublished (and thus not accessible on the site).
It should be " relatively impossible " for this to be nil . ... At least TCs with no identifyable entry should at least be unpublished ( and thus not accessible on the site ) .
def hierarchy_entry
    return _hierarchy_entry if classification_filter?
    return @entry if @entry
    if chosen = curator_chosen_classification
      @classification_chosen_by = chosen.user 
      @entry = chosen.hierarchy_entry
    else
      @entry = hierarchy_entries.shuffle.first
      @entry ||= taxon_concept.deep_published_nonbrowsable_hierarchy_entries.shuffle.first
      @entry ||= super
    end
    @entry
  end
def hierarchy_entry return _hierarchy_entry if classification_filter? return @entry if @entry if chosen = curator_chosen_classification @classification_chosen_by = chosen . user @entry = chosen . hierarchy_entry else @entry = hierarchy_entries . shuffle . first @entry ||= taxon_concept . deep_published_nonbrowsable_hierarchy_entries . shuffle . first @entry ||= super end @entry end
NOTE - It should be "relatively impossible" for this to be nil.
NOTE - It should be " relatively impossible " for this to be nil .
# Might as well set it while we have it.