mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +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
|