plataformatec/devise — pull request #1601 by macmartine (2012-01-26 16:47:46+00:00)
Title: Send confirmation email after_commit to avoid background jobs from trying to send email before record is created

When delegating DeviseMailer to something like Resque, sometimes the email tries to get sent before the record has fully been created. So, changing after_create to after_commit which fixes this problem.