2
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
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