1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/api/users/index.json.jbuilder
Sylvain be8ae01ba4 (ui) refactor plan form
Also: add advanced accounting to plans
2022-12-21 14:05:16 +01:00

11 lines
274 B
Ruby

# 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
json.resource user.roles.last.resource
end