Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2015 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5b6783f23aa3b0c7d700 to your computer and use it in GitHub Desktop.
Save anonymous/5b6783f23aa3b0c7d700 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.for(:sign_up) { |u| u.permit(:name,:password,:password_confirmation,:email) }
devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:name,:password,:password_confirmation,:email) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment