Making it trigger the crop thumbnail cache properly

This commit is contained in:
Cesy
2015-08-12 11:45:18 +00:00
parent 1df0c36e72
commit e784ec9b33

View File

@@ -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