Active Job with Rails 4 and Devise

AGirlThatCodes

I am trying to set up Active Job with Rails 4 and Devise. I'm open to any tutorial, if there is any (couldn't find through my searching.)

I know there is a Devise Async gem, but it does not cover Active Job in it. That said, I found this gem that is fresh in development, but I'm getting an uninitialized constant Devise::Async::Backend::Base (NameError)error. (Could be me being airy on implementing it).

Any suggestions are welcomed. I'm hoping I don't have to create new controller methods.

mrstif

You can include the following code in your desired model (normally User):

def send_devise_notification(notification, *args)
  devise_mailer.send(notification, self, *args).deliver_later
end

You can take a look at the following page for more detail: http://www.sitepoint.com/devise-authentication-in-depth/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related