RailsCasts Pro episodes are now free!

Learn more or hide this

rohandaxini's Profile

GitHub User: rohandaxini

Comments by

Avatar

You are right about your input/comment - One thing to watch out for when using QC (or any background job manager) with Rails is jobs enqueued from after_create / after_save callbacks that use the new record. We've found that you must use after_commit instead to ensure that the record has been committed to the DB before the worker tries to find it by ID.

I am interested to see Ryan Smiths response or comments on this too.