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.

Delegate OrderPromotion.public_metadata to Order.public_metadata

Aleksandar Petrushevab9033517c48
diff --git a/core/app/models/spree/order_promotion.rb b/core/app/models/spree/order_promotion.rb
index 2db32026c3..2cbf6c3ce9 100644
--- a/core/app/models/spree/order_promotion.rb
+++ b/core/app/models/spree/order_promotion.rb
@@ -4,7 +4,7 @@ module Spree
belongs_to :promotion, class_name: 'Spree::Promotion'
delegate :name, :description, :code, to: :promotion
- delegate :currency, to: :order
+ delegate :currency, :public_metadata, to: :order
extend Spree::DisplayMoney
money_methods :amount