Commit c681ebe
committed
refactor(payments): migrate to params.expect
- Wrap AJAX parameters in `payment` hash for params.expect compatibility
- Flatten Stripe token fields (stripe_email, stripe_token_id) instead of
nested `data` hash for clearer parameter names
- Update controller to use params.expect with flat structure
- Add type tampering test to verify 400 Bad Request behavior
- Remove root-level parameters exception from CLAUDE.md
Addresses review comment on #2476 about payments_controller still using
params.permit. Now all controllers use params.expect consistently.1 parent 2eaaebd commit c681ebe
7 files changed
Lines changed: 1610 additions & 16 deletions
File tree
- app
- assets/javascripts
- controllers
- docs/plans
- spec/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 220 | | |
230 | 221 | | |
231 | 222 | | |
| |||
0 commit comments