]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/api/users/_user.json.jbuilder
Fix predicate method names in the user model
[rails.git] / app / views / api / users / _user.json.jbuilder
index b8491601055207ac3609b6dcf3ba9c120b27d5f5..1a339f62805137307cdadc8a1db45a8bba0a6e80 100644 (file)
@@ -46,7 +46,7 @@ json.user do
   end
 
   if current_user && current_user == user && can?(:details, User)
   end
 
   if current_user && current_user == user && can?(:details, User)
-    if user.has_home?
+    if user.home_location?
       json.home do
         json.lat user.home_lat
         json.lon user.home_lon
       json.home do
         json.lat user.home_lat
         json.lon user.home_lon