Skip to content

Instantly share code, notes, and snippets.

@radar
Forked from anonymous/gist:5b6783f23aa3b0c7d700
Created December 17, 2015 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radar/4806ce926476bb476de2 to your computer and use it in GitHub Desktop.
Save radar/4806ce926476bb476de2 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