app/models/taxon_concept.rb
# NOTE - this is only used by the API
this is only used by the API
this is only used by the API
def published_sorted_hierarchy_entries_for_api
    entries = hierarchy_entries.where(hierarchy_id: Hierarchy.available_via_api.collect(&:id))
    HierarchyEntry.preload_associations(entries, [ :hierarchy, { name: :canonical_form }, :rank ])
    sort_and_preload_deeply_browsable_entries(entries)
  end
def published_sorted_hierarchy_entries_for_api entries = hierarchy_entries . where ( hierarchy_id : Hierarchy . available_via_api . collect ( & :id ) ) HierarchyEntry . preload_associations ( entries , [ :hierarchy , { name : :canonical_form } , :rank ] ) sort_and_preload_deeply_browsable_entries ( entries ) end
NOTE - this is only used by the API
NOTE - this is only used by the API