This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/app/controllers/feeds.rb

14 lines
303 B
Ruby

class Feeds < Application
only_provides :xml
def rss
@items = []
[ Page, Comment ].each do |kls|
@items.concat kls.find(:all, :limit => 25, :order => 'created_at DESC')
end
@items.sort! do |a, b|
b.created_at <=> a.created_at
end
render :format => :xml
end
end