The parameter that can be used to have future *and* past events in the rss feed is renamed to `future`

This commit is contained in:
echarp 2016-09-11 22:50:03 +02:00
parent 620c08f095
commit 0cc86601d0
1 changed files with 3 additions and 3 deletions

View File

@ -108,10 +108,10 @@ class EventsController < ApplicationController
end
def filter_for_rss
if(!params.has_key?(:showall))
@events.future.order('id desc').limit 20
if params[:future].present? && params[:future] == 'false'
@events.order 'id desc'
else
@events.order('id desc')
@events.future.order('id desc').limit 20
end
end