mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
10 lines
249 B
Ruby
10 lines
249 B
Ruby
json.teams do
|
|
json.array! teams do |team|
|
|
json.id team.id
|
|
json.name team.name
|
|
json.members team.members
|
|
json.role retrive_role_name(team.role)
|
|
json.can_be_left team.can_be_left
|
|
json.user_team_id team.user_team_id
|
|
end
|
|
end
|