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:
Maikel Linke
2019-01-22 17:00:29 +11:00
parent 7a723d9061
commit 659aa269de

View File

@@ -46,7 +46,7 @@ class PaymentMethodFactory
description: description,
distributor_ids: [enterprise.id]
)
card.calculator = calculator
card.save!
calculator.calculable = card
calculator.save!
end
end