]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/_user.json.jbuilder
Prevent input group wrapping when sidebar is resized
[rails.git] / app / views / api / users / _user.json.jbuilder
index 9629e8fa50276a53770f1123023a2b46e1253c02..d89b42befcf8a8725e6332945d060cb5e6001034 100644 (file)
@@ -54,11 +54,7 @@ json.user do
       end
     end
 
       end
     end
 
-    if user.languages
-      json.languages do
-        json.array! user.languages.split(",")
-      end
-    end
+    json.languages user.languages if user.languages?
 
     json.messages do
       json.received do
 
     json.messages do
       json.received do