mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Merge pull request #3993 from totothink/master
unified use pending_reconfirmation? method
This commit is contained in:
commit
69bee06cee
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ module Devise
|
||||||
|
|
||||||
self.confirmed_at = Time.now.utc
|
self.confirmed_at = Time.now.utc
|
||||||
|
|
||||||
saved = if self.class.reconfirmable && unconfirmed_email.present?
|
saved = if pending_reconfirmation?
|
||||||
skip_reconfirmation!
|
skip_reconfirmation!
|
||||||
self.email = unconfirmed_email
|
self.email = unconfirmed_email
|
||||||
self.unconfirmed_email = nil
|
self.unconfirmed_email = nil
|
||||||
|
|
Loading…
Reference in a new issue