andrew/24pullrequests — pull request #543 by rrooding (2013-12-13 21:52:17+00:00)
Title: Dont send confirmation mail if email is blank

This fixes issue #314

As stated by bob-p before_save hooks are run after the after_validation hook. However, the email validation also allows for empty email addresses. The check_email_changed method now only acts if the email did change and is present, if someone clears the email address the method just returns.

Also made the #check_email_changed method private, it isn't used anywhere directly.