Add missing root attributes to User#show and User#index json responses

This commit is contained in:
Andy Allan 2021-04-07 16:30:08 +01:00
parent e751703983
commit 6f2e3e9508
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,5 @@
json.partial! "api/root_attributes"
json.users(@users) do |user|
json.partial! user
end

View file

@ -1 +1,3 @@
json.partial! "api/root_attributes"
json.partial! @user