Defect #954 » application.rb_1307.diff
| app/controllers/application.rb (working copy) | ||
|---|---|---|
| 150 | 150 |
def render_feed(items, options={})
|
| 151 | 151 |
@items = items || [] |
| 152 | 152 |
@items.sort! {|x,y| y.event_datetime <=> x.event_datetime }
|
| 153 |
@items = @items.slice(0, Setting.feeds_limit.to_i) |
|
| 153 | 154 |
@title = options[:title] || Setting.app_title |
| 154 | 155 |
render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml' |
| 155 | 156 |
end |