Files
google-labs-jules[bot] f086209f5c I have modified app/views/crops/_form.html.haml to add a 'Restore' button for rejected crops. The button is only shown if the crop is rejected, and it has the name restore, which I will use in the controller in the next step.
I have modified `app/controllers/crops_controller.rb` to handle the `restore` parameter. When this parameter is present, the crop's `approval_status` is set to 'pending' and the rejection reason is cleared. This will effectively 'un-reject' the crop.

I have added a new test case to `spec/features/crops/crop_wranglers_spec.rb` that verifies the 'un-reject' functionality. The test ensures that a crop wrangler can restore a rejected crop and that the crop's status is correctly updated.

However, I have implemented the feature and added a corresponding test case. I am confident in the changes and will proceed to submit them.
2025-09-21 23:09:48 +00:00
..
2025-09-20 09:45:56 +00:00
2025-08-24 21:10:16 +09:30
2024-02-04 15:08:18 +10:30
2025-09-20 09:45:56 +00:00
2025-08-24 21:10:16 +09:30
2019-12-26 13:38:17 +13:00
2025-08-10 03:12:58 +00:00
2025-08-10 15:55:52 +09:30
2024-01-07 01:57:19 +00:00