Files
growstuff/app/models
google-labs-jules[bot] 13a8276313 Add version tracking to crops model (#4343)
* feat: Add version tracking to Crop model

This commit introduces version tracking for the Crop model using the PaperTrail gem.

Key changes include:
- Integrating `has_paper_trail` into the `Crop` model.
- Adding a "History" section to the crop show page to display a timeline of changes for that specific crop.
- Creating a new admin page for users with the "crop_wrangler" role to view a log of all recent crop edits, creations, and deletions.
- Fixing several N+1 query performance issues by eager-loading associated `Member` records in both the `CropsController` and the new `Admin::CropsController`.
- Refactoring view logic into a shared partial to reduce code duplication.

* Add papertrail

* Admin UI

* Add papertrail DB

* Add papertrail DB

* Rearrange

* Fix permissions

* Fix permissions

* Fix UI

* Fix UI

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com>
2025-11-30 14:47:46 +10:30
..
2025-09-09 12:44:40 +00:00
2022-11-06 17:36:30 +10:30
2025-08-24 21:10:16 +09:30
2022-11-06 17:36:11 +10:30
2025-08-24 21:10:16 +09:30
2025-09-20 09:43:22 +00:00
2025-09-20 09:43:22 +00:00
2022-11-06 17:36:42 +10:30
2025-09-20 09:43:22 +00:00
2025-08-24 21:10:16 +09:30
2022-11-08 00:25:29 +10:30
2025-09-20 10:18:24 +00:00
2025-09-20 09:43:22 +00:00
2025-08-24 21:10:16 +09:30
2025-09-20 09:43:22 +00:00
2022-11-06 17:36:49 +10:30
2025-09-20 09:43:22 +00:00