From 66cebb6f61193a5fb4199b85580a312ed6d94b42 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Sat, 21 May 2016 18:02:49 -0500 Subject: Remove `event_to_atom` helper --- app/views/users/show.atom.builder | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/views/users') diff --git a/app/views/users/show.atom.builder b/app/views/users/show.atom.builder index e9e466c6350..6c85e5f9fbd 100644 --- a/app/views/users/show.atom.builder +++ b/app/views/users/show.atom.builder @@ -6,7 +6,5 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear xml.id user_url(@user) xml.updated @events[0].updated_at.xmlschema if @events[0] - @events.each do |event| - event_to_atom(xml, event) - end + xml << render(@events) if @events.any? end -- cgit v1.2.1