From e784ec9b33c7e064d9adfdd7ca6f831841bcdc67 Mon Sep 17 00:00:00 2001 From: Cesy Date: Wed, 12 Aug 2015 11:45:18 +0000 Subject: [PATCH] Making it trigger the crop thumbnail cache properly --- app/views/crops/_thumbnail.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/crops/_thumbnail.html.haml b/app/views/crops/_thumbnail.html.haml index 770f1bfc7..32cbbce9a 100644 --- a/app/views/crops/_thumbnail.html.haml +++ b/app/views/crops/_thumbnail.html.haml @@ -1,7 +1,7 @@ .thumbnail .crop-thumbnail - if crop - - cache cache_key_for(crop) do + - cache cache_key_for(Crop, crop.id) do = link_to image_tag((crop.default_photo ? crop.default_photo.thumbnail_url : 'placeholder_150.png'), :alt => crop.name, :class => 'img'), crop .cropinfo .cropname