ruby on rails - Can delayed_jobs create delayed_jobs? -


I'm trying to figure out if I'm able to use delayed_job . Do I have the ability to add a job to the queue within the delayed_job methodology method is it possible?

According to my tests, they can:

model Machine :

  class machine & lt; ActiveRecord :: Base DF Delayed :: Job. Make!  << Code>  

Model Secondary :

  class secondary < ActiveRecord :: Base DF logger.info display ("Inside Secondary Display Method (WIN)") Proof Create! End of End of Console  

:

Delayed :: Job. Enquew machine. Create!

This completes making an example of proof and log in "Secondary ...".


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -