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?,
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