Files
openfoodnetwork/spec/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
..
2024-07-23 14:18:26 +01:00
2025-01-27 11:02:41 +11:00
2025-08-11 15:15:00 +10:00
2025-10-21 17:34:40 +02:00