Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Created October 24, 2018 06:38
Show Gist options
  • Save harrisonmalone/cc07ee825fe0fe8442244afeb067ba3e to your computer and use it in GitHub Desktop.
Save harrisonmalone/cc07ee825fe0fe8442244afeb067ba3e to your computer and use it in GitHub Desktop.
before_action :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:name, :dob])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment