fullsize garden images

This commit is contained in:
Brenda Wallace
2019-06-03 22:23:49 +12:00
parent 00010d3a0f
commit f94199676c

View File

@@ -8,9 +8,10 @@ module PhotosHelper
end
end
def garden_image_path(garden)
def garden_image_path(garden, full_size: false)
if garden.default_photo.present?
garden.default_photo.thumbnail_url
photo = garden.default_photo
full_size ? photo.fullsize_url : photo.thumbnail_url
else
placeholder_image
end