Files
openfoodnetwork/app/models/spree
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-02-01 11:39:07 +00:00
2020-08-07 13:45:25 +01:00
2021-09-08 14:28:31 +01:00
2022-11-02 16:21:15 +11:00
2021-10-25 21:28:28 -05:00
2022-11-02 15:33:43 +11:00
2022-10-26 10:42:19 +11:00
2022-05-06 10:55:24 -04:00
2022-05-06 10:55:24 -04:00
2022-10-19 16:30:12 +11:00
2021-12-10 18:18:20 +00:00
2022-04-15 16:50:28 +10:00