Guest User

Untitled

a guest
Oct 16th, 2017
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class RegistrationsController < Devise::RegistrationsController
  2.  
  3. private
  4.  
  5. def sign_up_params
  6. params.require(:user).permit( :name,
  7. :email,
  8. :password,
  9. :password_confirmation)
  10. end
  11.  
  12. def account_update_params
  13. params.require(:user).permit( :name,
  14. :email,
  15. :password,
  16. :password_confirmation,
  17. :current_password)
  18. end
  19. end
Add Comment
Please, Sign In to add comment