SpeciesFileGroup/taxonworks

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

Summary

Maintainability
Test Coverage
@predicates.each_key do |group|
  json.set!(group) do
    json.array! @predicates[group] do |k|
      json.partial! '/controlled_vocabulary_terms/attributes', controlled_vocabulary_term: k
    end
  end
end