rubyforgood / casa

Volunteer management system for nonprofit CASA, which serves foster youth in counties across America.
https://casavolunteertracking.org/
MIT License
305 stars 472 forks source link

CaseGroups request spec & custom policy generator #5999

Closed thejonroberts closed 4 weeks ago

thejonroberts commented 1 month ago

What github issue is this PR for, if any?

Addresses #5563

What changed, and why?

How is this tested? (please write tests!) 💖💪

The request spec was created with the controller as-is, and made to pass.

Then the policy changes were made in the controller without changing specs -- with one exception: The update action redirected to new rather than traditional edit redirect. I made that change.

NOTES:

Screenshots please :)

Policy generator help:

Screenshot 2024-08-19 at 11 24 30 PM

Feelings gif (optional)

alt text

elasticspoon commented 1 month ago

Ahhhhhh. never mind I am silly I can just do rails g policy some_action