]> git.openstreetmap.org Git - rails.git/commitdiff
Updated JSON response format per feedback
authorMichal Migurski <migurski@fb.com>
Wed, 7 Apr 2021 04:44:38 +0000 (21:44 -0700)
committerMichal Migurski <migurski@fb.com>
Wed, 7 Apr 2021 04:44:38 +0000 (21:44 -0700)
app/views/api/user_preferences/_user_preference.json.jbuilder

index 38bafa37f66f7cc82c3de8555fdbbb34c48a0e37..07eeaa939e30fefde8d5bc5fde6473cd14ed7f08 100644 (file)
@@ -1,6 +1,5 @@
 attrs = {
-  "k" => user_preference.k,
-  "v" => user_preference.v
+  user_preference.k => user_preference.v
 }
 
 json.preference(attrs)