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

9 lines
230 B
Plaintext
Raw Normal View History

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