]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/user_preferences/index.json.jbuilder
Merge remote-tracking branch 'upstream/pull/5184'
[rails.git] / app / views / api / user_preferences / index.json.jbuilder
index 064bf27f237b6661623907672b0743059ae6e7c0..f4f0d284f7184075cd8ffb59ee2ed64c27894e66 100644 (file)
@@ -1,3 +1,3 @@
 json.partial! "api/root_attributes"
 
 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] })