Skip to content

Commit

Permalink
use attached rather than present
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Apr 2, 2024
1 parent a2b696f commit ccba14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/welcome/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccba14f

Please sign in to comment.