public
Last active

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

  • Download Gist
delayed_devise_mailer.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.