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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Bring back `Product#featured_image` for backward compatibility
Damian Legawieca8b9b7d7557b
diff --git a/core/app/models/spree/product.rb b/core/app/models/spree/product.rbindex 0c4e22ca5a..423d0d49e8 100644--- a/core/app/models/spree/product.rb+++ b/core/app/models/spree/product.rb@@ -367,6 +367,14 @@ module Spreevariant_for_images&.primary_imageend+ # Backward compatibility for Spree 5.2 and earlier.+ # @deprecated Use Spree::Product#default_image instead.+ def featured_image+ Spree::Deprecation.warn('Spree::Product#featured_image is deprecated and will be removed in Spree 5.5. Please use Spree::Product#default_image instead.')++ default_image+ end+# Returns secondary Image for Product (for hover effects).# @return [Spree::Image, nil]def secondary_image