|
|
@ -2,7 +2,6 @@ json.username @user.full_name
|
|
|
|
json.login @user.login
|
|
|
|
json.login @user.login
|
|
|
|
json.user_id @user.id
|
|
|
|
json.user_id @user.id
|
|
|
|
json.image_url url_to_avatar(@user)
|
|
|
|
json.image_url url_to_avatar(@user)
|
|
|
|
json.image_tag image_tag(url_to_avatar(@user))
|
|
|
|
|
|
|
|
json.admin @user.admin?
|
|
|
|
json.admin @user.admin?
|
|
|
|
json.is_teacher @user.user_extension&.teacher?
|
|
|
|
json.is_teacher @user.user_extension&.teacher?
|
|
|
|
json.tidding_count 0
|
|
|
|
json.tidding_count 0
|
|
|
|