Use expect
for nested params in auth/setup#update
(#33657)
This commit is contained in:
parent
7543c90642
commit
45149cd5e1
2 changed files with 12 additions and 1 deletions
|
@ -35,6 +35,6 @@ class Auth::SetupController < ApplicationController
|
|||
end
|
||||
|
||||
def user_params
|
||||
params.require(:user).permit(:email)
|
||||
params.expect(user: [:email])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue