Use expect
for nested params in more controllers (#33675)
This commit is contained in:
parent
2a6a418f48
commit
d2cc28813f
8 changed files with 71 additions and 6 deletions
|
@ -21,6 +21,6 @@ class Disputes::AppealsController < Disputes::BaseController
|
|||
end
|
||||
|
||||
def appeal_params
|
||||
params.require(:appeal).permit(:text)
|
||||
params.expect(appeal: [:text])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue