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
Include active storage records when accessing Image records by default
Damian Legawiec344efb0fc622
diff --git a/core/app/models/spree/image/configuration/active_storage.rb b/core/app/models/spree/image/configuration/active_storage.rbindex c8d2f240c3..2e986b1e96 100644--- a/core/app/models/spree/image/configuration/active_storage.rb+++ b/core/app/models/spree/image/configuration/active_storage.rb@@ -10,6 +10,8 @@ module Spreehas_one_attached :attachment+ default_scope { includes(attachment_attachment: :blob) }+def self.styles@styles ||= {mini: '48x48>',diff --git a/core/app/models/spree/taxon_image/configuration/active_storage.rb b/core/app/models/spree/taxon_image/configuration/active_storage.rbindex 0acba96a68..2796fbebdb 100644--- a/core/app/models/spree/taxon_image/configuration/active_storage.rb+++ b/core/app/models/spree/taxon_image/configuration/active_storage.rb@@ -9,6 +9,8 @@ module Spreehas_one_attached :attachment+ default_scope { includes(attachment_attachment: :blob) }+def self.styles@styles ||= {mini: '32x32>',