]> git.openstreetmap.org Git - rails.git/commitdiff
Add missing root attributes to User#show and User#index json responses
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Apr 2021 15:30:08 +0000 (16:30 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Apr 2021 15:30:08 +0000 (16:30 +0100)
app/views/api/users/index.json.jbuilder
app/views/api/users/show.json.jbuilder

index efc905cfea3aa680d56eaa62c7c56df930f18998..1ad07d47cd2639cc63d49ae093b9785478a5868b 100644 (file)
@@ -1,3 +1,5 @@
+json.partial! "api/root_attributes"
+
 json.users(@users) do |user|
   json.partial! user
 end
index 51a85380ca97cf641280c3e515bcba0eca46e23d..b3a86a8926129e9c8f53c2ad83d77c5fdf752de8 100644 (file)
@@ -1 +1,3 @@
+json.partial! "api/root_attributes"
+
 json.partial! @user