X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/143a90fcac756299ce92e7cfee3846f7dca0ab80..7d4cc85a312cb79fd1c4b0f22626722bea1d736d:/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 064bf27f2..f4f0d284f 100644 --- a/app/views/api/user_preferences/index.json.jbuilder +++ b/app/views/api/user_preferences/index.json.jbuilder @@ -1,3 +1,3 @@ json.partial! "api/root_attributes" -json.preferences @user_preferences.map { |pref| [pref.k, pref.v] }.to_h +json.preferences(@user_preferences.to_h { |pref| [pref.k, pref.v] })