From 5411f93a9aec92a45dd5895a0a30340d9585defd 2012-10-04 18:15:05 From: Jean-Philippe Lang Date: 2012-10-04 18:15:05 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 --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8cdef28..5be896e 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