scinote-web/app/views/client_api/users/user_teams/leave_team.json.jbuilder

12 lines
360 B
Plaintext
Raw Normal View History

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')
2017-11-02 23:41:29 +08:00
json.can_be_left team.fetch('can_be_left')
end
end