From c4f91fb05469085c3f2bff310380e5cd22c379f0 Mon Sep 17 00:00:00 2001 From: xiaoxiaoqiong Date: Wed, 6 Apr 2022 20:32:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=94=A8=E6=88=B7=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0email=E5=92=8C=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_user_small.json.jbuilder | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/users/_user_small.json.jbuilder b/app/views/users/_user_small.json.jbuilder index b8033ba77..f5929ef6b 100644 --- a/app/views/users/_user_small.json.jbuilder +++ b/app/views/users/_user_small.json.jbuilder @@ -1,9 +1,11 @@ -# 单表存储的信息可以放里面 -json.array! users do |user| - json.username user.full_name - json.login user.login - json.user_id user.id - json.image_url url_to_avatar(user) - json.profile_completed user.profile_completed -end - +# 单表存储的信息可以放里面 +json.array! users do |user| + json.username user.full_name + json.login user.login + json.user_id user.id + json.mail user.mail + json.custom_department user.custom_department + json.image_url url_to_avatar(user) + json.profile_completed user.profile_completed +end +