Skip to content
Extraits de code Groupes Projets
Valider 1a0e0921 rédigé par echarp's avatar echarp
Parcourir les fichiers

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

parent fd36bc73
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -14,9 +14,9 @@ class EventsController < ApplicationController ...@@ -14,9 +14,9 @@ class EventsController < ApplicationController
respond_to do |format| respond_to do |format|
format.html { render layout: 'iframe' if params[:iframe] } format.html { render layout: 'iframe' if params[:iframe] }
format.json { @events = @events.future } format.json { @events = @events.future }
format.rss { @events = @events.future } format.rss { @events = @events.future.order('id desc').limit 20 }
format.ics { @events = @events.last_year.includes :region } format.ics { @events = @events.last_year }
format.xml { @events = @events.includes :region } format.xml { @events = @events }
end end
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter