Quick correction on the rss feed, ordering by id and limited to 20 elements

This commit is contained in:
echarp 2016-01-10 23:41:03 +01:00
parent fd36bc7361
commit 1a0e09213a
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ class EventsController < ApplicationController
respond_to do |format|
format.html { render layout: 'iframe' if params[:iframe] }
format.json { @events = @events.future }
format.rss { @events = @events.future }
format.ics { @events = @events.last_year.includes :region }
format.xml { @events = @events.includes :region }
format.rss { @events = @events.future.order('id desc').limit 20 }
format.ics { @events = @events.last_year }
format.xml { @events = @events }
end
end