Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed lazy_image usage on Ruby 3.0

Damian Legawiecdec3673f55b6
diff --git a/frontend/app/views/spree/shared/carousel/_single.html.erb b/frontend/app/views/spree/shared/carousel/_single.html.erb
index b5ca638dc1..47b1755833 100644
--- a/frontend/app/views/spree/shared/carousel/_single.html.erb
+++ b/frontend/app/views/spree/shared/carousel/_single.html.erb
@@ -57,7 +57,7 @@
width: zoomed ? 650 : 475,
height: zoomed ? 870 : 594
} %>
- <%= imageIndex.zero? ? image_tag(image_attrs.delete(:src), image_attrs) : lazy_image(image_attrs) %>
+ <%= imageIndex.zero? ? image_tag(image_attrs.delete(:src), image_attrs) : lazy_image(**image_attrs) %>
</div>
</div>
<% end %>