0
0
Fork 0

Use expect for nested params in auth/setup#update (#33657)

This commit is contained in:
Matt Jankowski 2025-01-21 03:16:40 -05:00 committed by GitHub
parent 7543c90642
commit 45149cd5e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -35,6 +35,6 @@ class Auth::SetupController < ApplicationController
end
def user_params
params.require(:user).permit(:email)
params.expect(user: [:email])
end
end