app/models/taxon_overview.rb
# NOTE - if the exemplar was not in data_objects, we'll end up with a longer list. ...Is this dangerous?
if the exemplar was not in data_objects, we'll end up with a longer list.
if the exemplar was not in data_objects we ' ll end up with a longer list .
def promote_exemplar_image(data_objects)
    return data_objects unless taxon_concept.published_exemplar_image
    data_objects.delete_if { |d| d.guid == taxon_concept.published_exemplar_image.guid }
    data_objects.unshift(DataObject.find(taxon_concept.published_exemplar_image))
    data_objects
  end
def promote_exemplar_image ( data_objects ) return data_objects unless taxon_concept . published_exemplar_image data_objects . delete_if { | d | d . guid == taxon_concept . published_exemplar_image . guid } data_objects . unshift ( DataObject . find ( taxon_concept . published_exemplar_image ) ) data_objects end
NOTE - if the exemplar was not in data_objects, we'll end up with a longer list.
NOTE - if the exemplar was not in data_objects we ' ll end up with a longer list .
data_objects
<not_specific>