1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/views/api/users/index.json.jbuilder
2020-04-21 16:47:35 +02:00

8 lines
198 B
Ruby

# frozen_string_literal: true
json.users @users do |user|
json.extract! user, :id, :email, :first_name, :last_name
json.name user.profile.full_name
json.resource user.roles.last.resource
end