]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/_user.xml.builder
Removed unused translations in user_role namespace
[rails.git] / app / views / api / users / _user.xml.builder
index 7d6b177f2f6db76d6d8222dd9918fc5b6d6efa7b..9fb74826a017b87170ca3f0f0ac771bb433e0d97 100644 (file)
@@ -1,6 +1,6 @@
 xml.tag! "user", :id => user.id,
                  :display_name => user.display_name,
-                 :account_created => user.creation_time.xmlschema do
+                 :account_created => user.created_at.xmlschema do
   xml.tag! "description", user.description if user.description
   if current_user && current_user == user && can?(:details, User)
     xml.tag! "contributor-terms", :agreed => user.terms_agreed.present?,
@@ -25,7 +25,7 @@ xml.tag! "user", :id => user.id,
     end
   end
   if current_user && current_user == user && can?(:details, User)
-    if user.home_lat && user.home_lon
+    if user.home_location?
       xml.tag! "home", :lat => user.home_lat,
                        :lon => user.home_lon,
                        :zoom => user.home_zoom