scinote-web/app/views/client_api/teams/index.json.jbuilder
2017-08-03 16:03:15 +02:00

5 lines
126 B
Ruby

json.array! teams do |team|
json.id team.id
json.name team.name
json.current_team team == current_user.current_team
end