Files
fizzy/app/views/users/_user.json.jbuilder
T
Stanko K.R. 7b30ca203e Add index actions for Comments and Columns
Also, fix crash when a deactivated user is serialized (they don't have
an identity).
2025-12-10 09:23:52 +01:00

9 lines
182 B
Ruby

json.cache! user do
json.(user, :id, :name, :role, :active)
json.email_address user.identity&.email_address
json.created_at user.created_at.utc
json.url user_url(user)
end