1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/views/api/users/index.json.jbuilder

11 lines
274 B
Plaintext
Raw Permalink Normal View History

2020-04-21 16:47:35 +02:00
# frozen_string_literal: true
json.array!(@users) do |user|
json.extract! user, :id, :email
json.name user.profile.full_name
json.profile_attributes do
json.extract! user.profile, :first_name, :last_name, :phone
end
2020-04-21 16:47:35 +02:00
json.resource user.roles.last.resource
2016-03-23 18:39:41 +01:00
end