mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-15 19:55:57 -04:00
Making it trigger the crop thumbnail cache properly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user