Sha256: de24dd098972bda49fd4774a978a394346eec5740cc80cd74cd082aa27a42c2f
Contents?: true
Size: 776 Bytes
Versions: 1
Compression:
Stored size: 776 Bytes
Contents
if member.is_a?(MnoEnterprise::User) json.uid member.uid json.entity 'User' json.role member.role(organization) if organization json.admin_role member.admin_role status = case when member.confirmed? then 'active' when member.confirmation_sent_at.nil? then 'pending' when member.confirmation_sent_at.present? then 'invited' end user = member elsif member.is_a?(MnoEnterprise::OrgInvite) json.entity 'OrgInvite' json.role member.user_role status = case member.status when 'staged' then 'pending' when 'pending' then 'invited' when 'accepted' then 'active' end user = member.user end json.extract! user, :id, :created_at, :email, :name, :surname json.status status
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mno-enterprise-api-3.3.2 | app/views/mno_enterprise/jpi/v1/admin/base_resource/_member.json.jbuilder |