scinote-web/app/views/client_api/teams/index.json.jbuilder
2017-09-01 17:10:43 +02:00

12 lines
368 B
Ruby

json.teams do
json.collection teams do |team|
json.id team.fetch('id')
json.name team.fetch('name')
json.members team.fetch('members')
json.role retrive_role_name(team.fetch('role') { nil })
json.current_team team.fetch('current_team')
json.can_be_leaved team.fetch('can_be_leaved')
json.user_team_id team.fetch('user_team_id')
end
end