X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a67ff9c0389702e169e44103d02d89886878a51d..2f3c2cdb44def797f1b3107ae166c77e3eee26d2:/app/views/api/user_preferences/index.json.jbuilder?ds=sidebyside diff --git a/app/views/api/user_preferences/index.json.jbuilder b/app/views/api/user_preferences/index.json.jbuilder index b3255562f..f4f0d284f 100644 --- a/app/views/api/user_preferences/index.json.jbuilder +++ b/app/views/api/user_preferences/index.json.jbuilder @@ -1 +1,3 @@ -json.partial! @user_preferences +json.partial! "api/root_attributes" + +json.preferences(@user_preferences.to_h { |pref| [pref.k, pref.v] })