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:
parent
620c08f095
commit
0cc86601d0
@ -108,10 +108,10 @@ class EventsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def filter_for_rss
|
def filter_for_rss
|
||||||
if(!params.has_key?(:showall))
|
if params[:future].present? && params[:future] == 'false'
|
||||||
@events.future.order('id desc').limit 20
|
@events.order 'id desc'
|
||||||
else
|
else
|
||||||
@events.order('id desc')
|
@events.future.order('id desc').limit 20
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user