mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
9 lines
230 B
Ruby
9 lines
230 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.users @users do |user|
|
|
json.extract! user, :id, :email, :first_name, :last_name
|
|
json.phone user.profile.phone
|
|
json.name user.profile.full_name
|
|
json.resource user.roles.last.resource
|
|
end
|