From 95edd455a5ee377fa605bbc607f6c20ee04048da Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 14 Jul 2018 16:40:01 +0200 Subject: [PATCH] Attempt to slightly limit the ical events, to only have the future one... --- app/controllers/events_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index 09f2611f..07ee66ea 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -15,8 +15,8 @@ class EventsController < ApplicationController respond_to do |format| format.html format.json { @events = @events.future } + format.ics { @events = @events.future } format.rss { @events = filter_for_rss } - format.ics { @events = @events.last_year } format.xml end end