mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #4872 from Matt-Yorkley/3-0-touch
[Spree 2.1] Touch on new records
This commit is contained in:
@@ -78,6 +78,8 @@ Spree::ShippingMethod.class_eval do
|
||||
private
|
||||
|
||||
def touch_distributors
|
||||
distributors.each(&:touch)
|
||||
distributors.each do |distributor|
|
||||
distributor.touch if distributor.persisted?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user