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.

Merge branch 'master' into feature/cms_pages

Matthew Kennedyac2834c60a6c
diff --cc core/app/models/spree/store.rb
index f4fcc506e3,5291ba48d8..5ed5e73d31
--- a/core/app/models/spree/store.rb
+++ b/core/app/models/spree/store.rb
@@@ -8,8 -13,8 +13,9 @@@ module Spre
has_many :store_payment_methods, class_name: 'Spree::StorePaymentMethod'
has_many :payment_methods, through: :store_payment_methods, class_name: 'Spree::PaymentMethod'
- has_many :menus
- has_many :cms_pages
++ has_many :cms_pages, class_name: 'Spree::CMSPage'
+ has_many :menus, class_name: 'Spree::Menu'
+ has_many :menu_items, through: :menus, class_name: 'Spree::MenuItem'
has_many :store_products, class_name: 'Spree::StoreProduct', dependent: :destroy
has_many :products, through: :store_products, class_name: 'Spree::Product'