Files
openfoodnetwork/app/controllers
Tresor11 5b3bae85ca Rescue Not Found Error for Enterprise for admin
Currently when an admin tries to edit an no-existing enterprise, a
NoMethodError is raised.

This commit adds a set_enterprise setter method to the
enterprises controller that sets the @enterprise instance variable to
have the same value as the enterprise object defined in the the edit
method; this method also rescues the NotFound error  in case
the enterprise is not found and redirects the user to the enterprises
index page with a error message.
2025-03-22 00:35:27 +03:00
..
2025-01-22 11:20:05 +11:00
2025-03-06 10:14:24 +11:00
2025-03-03 14:46:24 +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
2022-01-26 19:58:39 +00:00