Show all of a harvest's photos on harvest#show

This commit is contained in:
Brenda Wallace
2020-02-07 08:02:20 +13:00
committed by GitHub
parent 1d0a1baa2d
commit 4f5245f7e7

View File

@@ -46,7 +46,7 @@
- if @harvest.photos.size.positive?
%section
%h2 Photos
= render 'photos/gallery', photos: @harvest.photos.order(date_taken: :desc).limit(3)
= render 'photos/gallery', photos: @harvest.photos.order(date_taken: :desc)
%section.harvest-detail
%h2 Detail
- if @harvest.planting.present?