Created
November 2, 2010 11:34
-
-
Save robotmay/659514 to your computer and use it in GitHub Desktop.
A quick hack to make Devise send its confirmation/password reset/unlock emails via delayed_job. Chuck the following in a file under config/initializers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Devise | |
module Models | |
module Confirmable | |
handle_asynchronously :send_confirmation_instructions | |
end | |
module Recoverable | |
handle_asynchronously :send_reset_password_instructions | |
end | |
module Lockable | |
handle_asynchronously :send_unlock_instructions | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment