I have a file named Cron.rb located in app/lib.
To execute the file I do something like this.
Cron.run
This executes a method which creates a thread and processes cron jobs that I have programmed into the file.
I want a graceful way of automatically starting this Cron.run function when rails is started in either development or production. I can't use a cron Job to start this file. I want it to start alongside the current instance of ActiveRecord with all the other Models, etc.
config/initializers?startup_cron.rbwhich containsCron.run?