Use expect for nested params in settings/* controllers (#33673)
This commit is contained in:
@@ -20,7 +20,7 @@ class Settings::ProfilesController < Settings::BaseController
|
||||
private
|
||||
|
||||
def account_params
|
||||
params.require(:account).permit(:display_name, :note, :avatar, :header, :bot, fields_attributes: [:name, :value])
|
||||
params.expect(account: [:display_name, :note, :avatar, :header, :bot, fields_attributes: [:name, :value]])
|
||||
end
|
||||
|
||||
def set_account
|
||||
|
||||
Reference in New Issue
Block a user