Originally created by @michaelachrisco on GitHub (Apr 6, 2015).
At rails generate crono:install
I think that the gem should create an example job for the rails project within the app folder.
For example:
$ rails generate crono:install
Should create:
# app/crono_jobs/test.rb
module CronoJobs
class Test < ActiveJob::Base
def perform
# put you scheduled code here
# Comments.deleted.clean_up...
fail 'You forgot to set up your crono job...'
end
end
#config/cronotab.rb
include CronoJobs
Crono.perform(CronoJobs::Test).every 2.days, at: {hour: 15, min: 30}
Originally created by @michaelachrisco on GitHub (Apr 6, 2015).
At `rails generate crono:install`
I think that the gem should create an example job for the rails project within the app folder.
For example:
``` Bash
$ rails generate crono:install
```
Should create:
```
# app/crono_jobs/test.rb
module CronoJobs
class Test < ActiveJob::Base
def perform
# put you scheduled code here
# Comments.deleted.clean_up...
fail 'You forgot to set up your crono job...'
end
end
```
```
#config/cronotab.rb
include CronoJobs
Crono.perform(CronoJobs::Test).every 2.days, at: {hour: 15, min: 30}
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @michaelachrisco on GitHub (Apr 6, 2015).
At
rails generate crono:installI think that the gem should create an example job for the rails project within the app folder.
For example:
Should create: