Add shipment_adjustments association to Order

This commit is contained in:
Matt-Yorkley
2021-02-08 18:09:59 +00:00
parent 9ed6ae588f
commit f5d3e22730

View File

@@ -47,6 +47,7 @@ module Spree
dependent: :destroy
has_many :line_item_adjustments, through: :line_items, source: :adjustments
has_many :shipment_adjustments, through: :shipments, source: :adjustments
has_many :all_adjustments, class_name: 'Spree::Adjustment', dependent: :destroy
has_many :shipments, dependent: :destroy do