From 559e4554d8fff022be7caea9ae37a61379e6bc10 Mon Sep 17 00:00:00 2001 From: echarp Date: Fri, 19 Apr 2019 14:05:36 +0200 Subject: [PATCH] Cache collection rendering --- app/views/events/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/events/index.html.haml b/app/views/events/index.html.haml index 10915692..e32f0795 100644 --- a/app/views/events/index.html.haml +++ b/app/views/events/index.html.haml @@ -31,7 +31,7 @@ = month_calendar events: @events do |date, events| - capture_haml do .day_number= date.day - %ul.events.fa-ul= render events, cached: true + %ul.events.fa-ul= render partial: :event, collection: events, cached: true .links = raw t '.calendar_in',