forgeplus/app/views/api/v1/users/_simple_user.json.jbuilder

9 lines
240 B
Ruby

if user.present?
json.id user.id
json.type user.type
json.name user.real_name
json.login user.login
json.image_url Rails.application.config_for(:configuration)['platform_url'] + "/" + url_to_avatar(user).to_s
else
json.nil!
end