From 5411f93a9aec92a45dd5895a0a30340d9585defd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 4 Oct 2012 18:15:05 +0000 Subject: [PATCH] Passing the format in the template name is deprecated. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10561 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8cdef289a..5be896ee4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -402,7 +402,7 @@ class ApplicationController < ActionController::Base @items.sort! {|x,y| y.event_datetime <=> x.event_datetime } @items = @items.slice(0, Setting.feeds_limit.to_i) @title = options[:title] || Setting.app_title - render :template => "common/feed.atom", :layout => false, + render :template => "common/feed", :formats => [:atom], :layout => false, :content_type => 'application/atom+xml' end