app/models/data_object.rb
# Options allowed are the :hierarchy_entry or :taxon_concept to filter on. Don't use both.
# With no options, this sorts by best vetted status.
Options allowed are the :hierarchy_entry or :taxon_concept to filter on. Don't use both.
With no options, this sorts by best vetted status.
Options allowed are the : hierarchy_entry or : taxon_concept to filter on . Don ' t use both . With no options this sorts by best vetted status .
def raw_associations(options = {})
    assocs = filter_associations(data_objects_hierarchy_entries, options)
    assocs += filter_associations(all_curated_data_objects_hierarchy_entries, options)
    if assocs.empty? || options.empty?
      return [] if options[:hierarchy_entry] 
      if users_data_object
        assocs << users_data_object unless
          options[:taxon_concept] && users_data_object.taxon_concept_id != options[:taxon_concept].id
      end
    end
    assocs.compact!
    return [] if assocs.empty?
    assocs.sort_by { |a| [ a.visibility && a.visibility.view_order, a.vetted && a.vetted.view_order ] }
  end
def raw_associations ( options = { } ) assocs = filter_associations ( data_objects_hierarchy_entries , options ) assocs += filter_associations ( all_curated_data_objects_hierarchy_entries , options ) if assocs . empty? || options . empty? return [ ] if options [ :hierarchy_entry ] if users_data_object assocs << users_data_object unless options [ :taxon_concept ] && users_data_object . taxon_concept_id != options [ :taxon_concept ] . id end end assocs . compact! return [ ] if assocs . empty? assocs . sort_by { | a | [ a . visibility && a . visibility . view_order , a . vetted && a . vetted . view_order ] } end
Options allowed are the :hierarchy_entry or :taxon_concept to filter on.
Options allowed are the : hierarchy_entry or : taxon_concept to filter on .
# Can't match this on UDO, so there were none.
options
<not_specific>