How can I add a password to a model validating empty ones by Devise?
This code
|
(user_authentications.empty? || !password.blank?) && super |
is making #update_attributes(password: "", password_confirmation: "") silently fail, rather than throwing validation error.