Use expect
for nested params in settings/*
controllers (#33673)
This commit is contained in:
parent
8b24085f8e
commit
e155aab39e
16 changed files with 131 additions and 8 deletions
|
@ -27,7 +27,7 @@ class Settings::MigrationsController < Settings::BaseController
|
|||
private
|
||||
|
||||
def resource_params
|
||||
params.require(:account_migration).permit(:acct, :current_password, :current_username)
|
||||
params.expect(account_migration: [:acct, :current_password, :current_username])
|
||||
end
|
||||
|
||||
def set_migrations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue