From: Andy Allan Date: Wed, 7 Apr 2021 15:30:08 +0000 (+0100) Subject: Add missing root attributes to User#show and User#index json responses X-Git-Tag: live~2178^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6f2e3e9508b6a51062f547e3630cf1c7ad2639c1?ds=inline;hp=--cc Add missing root attributes to User#show and User#index json responses --- 6f2e3e9508b6a51062f547e3630cf1c7ad2639c1 diff --git a/app/views/api/users/index.json.jbuilder b/app/views/api/users/index.json.jbuilder index efc905cfe..1ad07d47c 100644 --- a/app/views/api/users/index.json.jbuilder +++ b/app/views/api/users/index.json.jbuilder @@ -1,3 +1,5 @@ +json.partial! "api/root_attributes" + json.users(@users) do |user| json.partial! user end diff --git a/app/views/api/users/show.json.jbuilder b/app/views/api/users/show.json.jbuilder index 51a85380c..b3a86a892 100644 --- a/app/views/api/users/show.json.jbuilder +++ b/app/views/api/users/show.json.jbuilder @@ -1 +1,3 @@ +json.partial! "api/root_attributes" + json.partial! @user