Files
openfoodnetwork/app/controllers
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-06-05 09:29:42 +10:00
2023-09-09 09:00:38 +09:00
2025-02-12 16:10:36 +11:00
2022-01-26 19:58:39 +00:00