Files
openfoodnetwork/app/models
David Rodríguez c526e72539 Improve enterprise removal (failure case)
Make sure failure to delete due to dependent objects is handled through
activemodel errors and not by rescuing
`ActiveRecord::DeleteRestrictionError` exceptions.

Previously we would display two alert prompts, and we would weirdly
display the content of our 500 error page on top of the screen.

Now, we display a flash error message explaining the reason to fail to
remove it.
2025-11-27 19:10:15 +01:00
..
2025-10-27 11:30:33 +01:00
2025-10-27 11:30:33 +01:00
2024-09-24 10:43:55 +10:00
2023-09-12 23:19:05 +09:00
2025-01-10 08:43:58 +11:00
2024-02-22 10:15:07 +11:00
2023-09-12 23:19:05 +09:00
2024-04-09 10:44:02 +02:00
2024-04-09 10:44:02 +02:00
2025-03-26 19:44:08 +01:00
2025-11-03 15:50:12 +11:00
2024-11-28 13:35:01 +01:00