Skip to content

Instantly share code, notes, and snippets.

@robotmay
Created November 2, 2010 11:34
Show Gist options
  • Save robotmay/659514 to your computer and use it in GitHub Desktop.
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
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