1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/views/api/users/index.json.jbuilder
2020-04-22 10:09:16 +02:00

9 lines
230 B
Ruby

# frozen_string_literal: true
json.users @users do |user|
json.extract! user, :id, :email, :first_name, :last_name
json.phone user.profile.phone
json.name user.profile.full_name
json.resource user.roles.last.resource
end