From ccba14f683f4c21f0344816c35010cb6ed0de683 Mon Sep 17 00:00:00 2001 From: Adrien POLY Date: Tue, 2 Apr 2024 18:00:54 +0200 Subject: [PATCH] use attached rather than present --- app/views/welcome/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/welcome/index.html.slim b/app/views/welcome/index.html.slim index 43a6bea8..912f071d 100644 --- a/app/views/welcome/index.html.slim +++ b/app/views/welcome/index.html.slim @@ -34,7 +34,7 @@ - sponsors.each do |sponsor| - cache sponsor do = link_to sponsor.website, title: sponsor.name, target: "_blank" do - - if sponsor.logo.present? + - if sponsor.logo.attached? = cl_image_tag sponsor.logo.key, width: 200, height: 160, crop: :fit, alt: sponsor.name, srcset: "#{cl_image_path sponsor.logo.key, width: 400, height: 320, crop: :fit} 2x" - else = sponsor.name