SpeciesFileGroup/taxonworks

View on GitHub
app/views/collecting_events/api/v1/autocomplete.json.jbuilder

Summary

Maintainability
Test Coverage
json.array! @collecting_events do |s|
  v = collecting_event_tag(s)
  json.id s.id
  json.label v
  
  json.label_html collecting_event_autocomplete_tag(s)

  json.response_values do 
    if params[:method]
      json.set! params[:method], s.id
    end
  end 
end