X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a67ff9c0389702e169e44103d02d89886878a51d..c6e12b541bc210f5785aa8f32b86afcc717fa80b:/app/views/api/user_preferences/index.json.jbuilder 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] })