Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active October 16, 2017 12:53
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 domagude/2f68987219f5e65caf80073ed23abdb1 to your computer and use it in GitHub Desktop.
Save domagude/2f68987219f5e65caf80073ed23abdb1 to your computer and use it in GitHub Desktop.
class RegistrationsController < Devise::RegistrationsController
private
def sign_up_params
params.require(:user).permit( :name,
:email,
:password,
:password_confirmation)
end
def account_update_params
params.require(:user).permit( :name,
:email,
:password,
:password_confirmation,
:current_password)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment