Jean-Baptiste Bellet
719025f98e
Only set calculator if it's a new record (having an id)
Unless we have a ActiveRecord::NotNullViolation
```
ActiveRecord::NotNullViolation:
PG::NotNullViolation: ERROR: null value in column "calculable_id" of relation "spree_calculators" violates not-null constraint
DETAIL: Failing row contains (9370, Calculator::None, null, Spree::ShippingMethod, 2023-01-12 15:09:44.381142, 2023-01-12 15:09:44.381142).
# ------------------
# --- Caused by: ---
# PG::NotNullViolation:
# ERROR: null value in column "calculable_id" of relation "spree_calculators" violates not-null constraint
# DETAIL: Failing row contains (9370, Calculator::None, null, Spree::ShippingMethod, 2023-01-12 15:09:44.381142, 2023-01-12 15:09:44.381142).
```
2023-01-16 09:31:15 +01:00
..
2022-12-27 17:49:48 +01:00
2022-10-26 20:10:34 +02:00
2021-06-17 23:07:26 +01:00
2022-12-20 08:19:47 -07:00
2023-01-16 09:31:15 +01:00
2021-09-10 14:40:46 +10:00
2021-06-17 23:07:26 +01:00
2021-11-04 14:55:23 +00:00
2021-06-17 23:07:26 +01:00
2022-06-01 17:16:54 +10:00
2021-06-17 23:07:26 +01:00
2022-09-27 13:14:18 +10:00
2022-10-21 17:21:24 +01:00
2021-06-17 23:07:26 +01:00
2021-07-27 15:39:40 +02:00
2022-10-26 10:42:19 +11:00
2021-06-17 23:07:26 +01:00
2021-04-15 15:59:03 +10:00
2021-12-10 18:18:20 +00:00
2022-12-08 15:22:05 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2021-04-19 11:52:41 +02:00
2021-04-15 15:59:03 +10:00
2022-10-21 17:21:31 +01:00
2021-06-17 23:07:26 +01:00
2022-07-28 13:41:15 +02:00
2022-11-24 10:25:59 +01:00
2021-06-17 23:07:26 +01:00
2021-06-17 23:07:26 +01:00
2022-05-11 13:45:13 -04:00
2022-07-28 13:41:14 +02:00
2021-06-17 23:07:26 +01:00
2022-10-26 10:42:19 +11:00
2021-06-04 14:11:22 -03:00