SpeciesFileGroup/taxonworks

View on GitHub
app/views/collection_objects/select_options.json.jbuilder

Summary

Maintainability
Test Coverage
@collection_objects.each_key do |group|
  json.set!(group) do
    json.array! @collection_objects[group] do |o|
      json.partial! '/collection_objects/attributes', collection_object: o 
      json.object_tag collection_object_tag(o)
    end
  end
end