- Refactored to simplify some logic and start moving toward mimicking default Devise lifecycle behavior
- Added
Devise::MultiEmail.only_login_with_primary_email
option to restrict login to only primary emails - Added
Devise::MultiEmail.autosave_emails
option to automatically enableautosave
on "emails" association
- New
Devise::MultiEmail#configure
setup with options foruser
andemails
associations andprimary_email_record
method names - Refactor to expose
_multi_email_*
prefixed methods on models - Changed logic when changing an email address to look up existing email record, otherwise creating a new one, then marking it "primary"
- Changed logic when changing an email address to mark all others as
primary = false
- Changed logic when changing an email address to
nil
to mark asprimary = false
rather than deleting records
Many thanks to joelvh for the great work!
- New
.find_by_email
method. Thanks to mrjlynch.
- Bug fix: Case-insentive configuration of email is ignored (#1). Thanks to @fonglh.
- Bug fix: Fix a wrong error message which shows "Email can't be blank" when email does not exist.
First stable release.