-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing block to for strong parameters breaks code #758
Comments
Hi @erikflood, did you find solution ? |
🆙 |
Hi, anyone have a workaround to this? I need to receive nested attributes and this should be the way. EDIT: actually I misunderstood the doc; it is not necessary to pass a block in order to permit nested attributes |
Yes as @fabianprado was pointing out - the current workaround is to not pass in a block to def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:username])
end |
Workaround posted, closing for now |
If I pass anything but scalar values as strong parameters, but instead passes a block, it will break the devise_token_auth gem:
will result in the following error
The text was updated successfully, but these errors were encountered: