Project

General

Profile

Defect #954 » application.rb_1307.diff

diff for app/controllers/application.rb (revision 1307) - Thomas Löber, 2008-03-29 23:16

View differences:

app/controllers/application.rb (working copy)
def render_feed(items, options={})
@items = items || []
@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.rxml", :layout => false, :content_type => 'application/atom+xml'
end
    (1-1/1)