2014-12-04 14:49:19 -05:00
|
|
|
xml.instruct!
|
2014-12-31 15:05:38 -05:00
|
|
|
xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://search.yahoo.com/mrss/" do
|
2015-04-21 11:03:23 -04:00
|
|
|
xml.title "#{@user.name} activity"
|
2014-12-04 15:14:20 -05:00
|
|
|
xml.link href: user_url(@user, :atom), rel: "self", type: "application/atom+xml"
|
|
|
|
xml.link href: user_url(@user), rel: "alternate", type: "text/html"
|
2015-04-21 11:03:23 -04:00
|
|
|
xml.id user_url(@user)
|
2016-01-07 16:45:56 -05:00
|
|
|
xml.updated @events.latest_update_time.to_s(:iso8601) if @events.any?
|
2014-12-04 14:49:19 -05:00
|
|
|
|
|
|
|
@events.each do |event|
|
2014-12-04 15:14:20 -05:00
|
|
|
event_to_atom(xml, event)
|
2014-12-04 14:49:19 -05:00
|
|
|
end
|
|
|
|
end
|