diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-09-13 14:49:00 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-09-13 14:50:48 +0100 |
commit | bd94b0390fcfba53bee7d546227e94e860f37c17 (patch) | |
tree | f28f2eb86ea629f044c643999c7ce7a8bb99994f | |
parent | 52c3e28d09fd75fdbf467c96909e20a86aeaa7fa (diff) |
Fix Atom version of api_body_request_events
Remove duplicate <created> element, and add an <updated> element
to each entry.
-rw-r--r-- | app/views/api/request_events.atom.builder | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/api/request_events.atom.builder b/app/views/api/request_events.atom.builder index 4f0133051..44759ae7e 100644 --- a/app/views/api/request_events.atom.builder +++ b/app/views/api/request_events.atom.builder @@ -6,7 +6,7 @@ atom_feed("xmlns:alaveteli" => "http://www.alaveteli.org/API/v2/RequestEvents/At feed.entry(event) do |entry| request = event.info_request - entry.published(event.created_at) + entry.updated(event.created_at.utc.iso8601) entry.tag!("alaveteli:event_type", event.event_type) entry.tag!("alaveteli:request_url", main_url(request_url(request))) entry.title(request.title) |