app/models/taxon_concept.rb
# Put the currently-preferred entry at the top of the list and load associations:
Put the currently-preferred entry at the top of the list and load associations.
Put the currently - preferred entry at the top of the list and load associations .
def sort_and_preload_deeply_browsable_entries(set)
    current_entry_id = entry.id 
    set.sort! { |a,b| a.id == current_entry_id ? -1 : b.id == current_entry_id ? 1 : 0}
    HierarchyEntry.preload_deeply_browsable(set)
  end
def sort_and_preload_deeply_browsable_entries ( set ) current_entry_id = entry . id set . sort! { | a , b | a . id == current_entry_id ? - 1 : b . id == current_entry_id ? 1 : 0 } HierarchyEntry . preload_deeply_browsable ( set ) end
Put the currently-preferred entry at the top of the list and load associations:
Put the currently - preferred entry at the top of the list and load associations :
# Don't want to call #entry so many times...
set
<not_specific>