mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
be8ae01ba4
Also: add advanced accounting to plans
11 lines
274 B
Ruby
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
|