Skip reconfirmation in case that a record is created with #save called in callback

This commit is contained in:
MatBi 2016-04-18 19:32:54 +08:00
parent 6f9561e64f
commit 3360b10c2f
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ module Devise
# in models to map to a nice sign up e-mail.
def send_on_create_confirmation_instructions
send_confirmation_instructions
skip_reconfirmation!
end
# Callback to overwrite if confirmation is required or not.