Active assignment with Rails 4 and development

I am trying to configure Active Job with Rails 4 and Devise. I am open to any textbook, if any (could not be found in my search.)

I know there is a Devise Async gem , but it does not address the active task. However, I found this gem , which is new to development, but I get the error uninitialized constant Devise::Async::Backend::Base (NameError) . (Could I be airy when it is implemented).

Any suggestions are welcome. I hope that I do not need to create new controller methods.

+6
source share
1 answer

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

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

You can look at more detailed information on the following page: http://www.sitepoint.com/devise-authentication-in-depth/

+13
source

Source: https://habr.com/ru/post/979755/


All Articles