mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 23:15:34 +08:00
12 lines
364 B
Text
12 lines
364 B
Text
|
json.teams do
|
||
|
json.flash_message flash_message
|
||
|
json.collection teams do |team|
|
||
|
json.id team.fetch('id')
|
||
|
json.name team.fetch('name')
|
||
|
json.members team.fetch('members')
|
||
|
json.role 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')
|
||
|
end
|
||
|
end
|