mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix creation of sample payment methods on staging
Due to an unknown reason my chosen way of creating calculator and assigning it to a payment method didn't work in staging environment even though it was working in development. Without diving deeper into the cause of this, I decided to change the record assignments and fix the problem that way.
This commit is contained in:
@@ -46,7 +46,7 @@ class PaymentMethodFactory
|
||||
description: description,
|
||||
distributor_ids: [enterprise.id]
|
||||
)
|
||||
card.calculator = calculator
|
||||
card.save!
|
||||
calculator.calculable = card
|
||||
calculator.save!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user