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.

Remove self.

Matthew Kennedy8bf23c1065cb
diff --git a/core/app/models/spree/cms_section.rb b/core/app/models/spree/cms_section.rb
index 3e5d2272c4..7a174bec10 100644
--- a/core/app/models/spree/cms_section.rb
+++ b/core/app/models/spree/cms_section.rb
@@ -10,7 +10,7 @@ module Spree
IMAGE_SIZE = ['sm', 'md', 'lg', 'xl']
IMAGE_COUNT.each do |count|
- self.send(:has_one_attached, "image_#{count}".to_sym)
+ send(:has_one_attached, "image_#{count}".to_sym)
IMAGE_SIZE.each do |size|
define_method("img_#{count}_#{size}") do |dimensions = nil|