rails/rails — pull request #9545 by senny (2013-03-04 17:59:49+00:00)
Title: `has_secure_password` is not invalid when assigning empty Strings

Closes #9535.

With 692b3b6 the `password=` setter does no longer set blank passwords.
This triggered validation errors when assigning empty Strings to `password`
and `password_confirmation`.

This patch only sets the confirmation if it is not `blank?`.