0
0
Fork 0

Use expect in remaining controller locations (#33748)

This commit is contained in:
Matt Jankowski 2025-01-27 11:32:06 -05:00 committed by GitHub
parent ea743d68f3
commit 93f3c724ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 72 additions and 5 deletions

View file

@ -19,6 +19,6 @@ class Settings::Preferences::BaseController < Settings::BaseController
end
def user_params
params.require(:user).permit(:locale, :time_zone, chosen_languages: [], settings_attributes: UserSettings.keys)
params.expect(user: [:locale, :time_zone, chosen_languages: [], settings_attributes: UserSettings.keys])
end
end