Use expect for nested params in more controllers (#33675)

This commit is contained in:
Matt Jankowski 2025-01-22 03:35:34 -05:00 committed by GitHub
parent 2a6a418f48
commit d2cc28813f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 71 additions and 6 deletions

View file

@ -21,6 +21,6 @@ class Disputes::AppealsController < Disputes::BaseController
end
def appeal_params
params.require(:appeal).permit(:text)
params.expect(appeal: [:text])
end
end