1
0
Fork 0
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:
Lucas Mazza 2016-03-12 14:34:21 -03:00
commit 69bee06cee

View file

@ -75,7 +75,7 @@ module Devise
self.confirmed_at = Time.now.utc
saved = if self.class.reconfirmable && unconfirmed_email.present?
saved = if pending_reconfirmation?
skip_reconfirmation!
self.email = unconfirmed_email
self.unconfirmed_email = nil