2016-05-30 15:39:19 +02:00
|
|
|
json.array!(@members) do |member|
|
2019-01-21 15:17:56 +01:00
|
|
|
json.maxMembers @max_members
|
2016-05-30 15:39:19 +02:00
|
|
|
json.id member.id
|
|
|
|
json.email member.email if current_user
|
|
|
|
json.profile do
|
|
|
|
json.first_name member.profile.first_name
|
|
|
|
json.last_name member.profile.last_name
|
|
|
|
json.phone member.profile.phone
|
|
|
|
end
|
2016-08-04 12:08:33 +02:00
|
|
|
json.need_completion member.need_completion?
|
2016-05-30 15:39:19 +02:00
|
|
|
json.group do
|
|
|
|
json.name member.group.name
|
|
|
|
end
|
2019-01-21 15:17:56 +01:00
|
|
|
if member.subscribed_plan
|
|
|
|
json.subscribed_plan do
|
|
|
|
json.partial! 'api/shared/plan', plan: member.subscribed_plan
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|