Skip to content

Commit

Permalink
Touch shipment when updating shipment rate
Browse files Browse the repository at this point in the history
Fixes solidusio#1909
If shipment rate is updated it does not touch shipments, and shipments
wont touch order, leading to a out of sync cached order
  • Loading branch information
softr8 committed May 23, 2017
1 parent d3eb81c commit de886c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/shipping_rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Spree
# method has been selected to deliver the shipment.
#
class ShippingRate < Spree::Base
belongs_to :shipment, class_name: 'Spree::Shipment'
belongs_to :shipment, class_name: 'Spree::Shipment', touch: true
belongs_to :shipping_method, -> { with_deleted }, class_name: 'Spree::ShippingMethod', inverse_of: :shipping_rates

has_many :taxes,
Expand Down

0 comments on commit de886c6

Please sign in to comment.