aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-11 16:04:59 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-12 14:57:44 +0000
commitd98732783b14869aca818d0c204bfb6e67b268d7 (patch)
treef73b7b6b1e4d0253cb6527d666269542485f53c3 /app/controllers/api_controller.rb
parentc0c79a024d6cbfdea18fd87d620c856d8dfc43ef (diff)
Don't specify format in template name.
In render calls, that's now deprecated in favour of using the :formats option.
Diffstat (limited to 'app/controllers/api_controller.rb')
-rw-r--r--app/controllers/api_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb
index e7bea67ef..00a3beebd 100644
--- a/app/controllers/api_controller.rb
+++ b/app/controllers/api_controller.rb
@@ -200,7 +200,7 @@ class ApiController < ApplicationController
])
end
if feed_type == "atom"
- render :template => "api/request_events.atom", :layout => false
+ render :template => "api/request_events", :formats => ['atom'], :layout => false
elsif feed_type == "json"
# For the JSON feed, we take a "since" parameter that allows the client
# to restrict to events more recent than a certain other event