my app is Rails 3 + Delayed Job (2.1.4) + Devise(2.1.2) + Devise Async (0.3.1).
I'm using this devise setup to have all the devise emails sent async. This works fine for new users but in my invite flow I do the following:
added_user = User.new(:email => email, :added_by => current_user, :added_to => @group)
The problem here is that added_by and added_to are virtual attributes (attr_accessor). And when Delayed Job Async inserts the jobs in Delayed Job the virtual attributes are not there and errors occur.
Any ideas on how to handle this situation? Is this a Delayed Job issues or Devise Async Issue? I'm not entirely sure where to start and google searches weren't helpful.
Thanks