Convert admin/users view - serialize users array
Problem to solve
For us to properly pass the @users
array to the Vue app using a data attribute we'll have to serialize the @users
data.
See AuditEventsController
as an example.
Implementation plan
-
Create an admin users serializer -
Serialize the @users
array inapp/controllers/admin/users_controller.rb
Note: We could potentially reuse some of the API entities like UserDetailsWithAdmin
.
Edited by Jiaan Louw