if current_user
data[:user] = current_user.id.to_json
- data[:user_home] = { :lat => current_user.home_lat, :lon => current_user.home_lon } if current_user.has_home?
+ data[:user_home] = { :lat => current_user.home_lat, :lon => current_user.home_lon } if current_user.home_location?
end
data[:location] = session[:location] if session[:location]