Advertisement
Guest User

Untitled

a guest
May 5th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. devise_parameter_sanitizer.for(:sign_up) do |u|
  2. u.permit(:full_name, :email, :password, :password_confirmation)
  3. end
  4. devise_parameter_sanitizer.for(:account_update) do |u|
  5. u.permit(:full_name, :email, :password, :password_confirmation)
  6. end
  7.  
  8. devise_parameter_sanitizer.for(:sign_up, &your_method)
  9. devise_parameter_sanitizer.for(:account_update, &your_method)
  10.  
  11. def your_method
  12. Proc.new { |u| u.permit(:full_name, :email, :password, :password_confirmation) }
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement