Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jGRUBBS committed Mar 7, 2014
1 parent c6cd07d commit e563f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Product < ActiveRecord::Base

# define in model
# * this is an alternative to the methods array in config
# - override inteveral from setup
# - override default_inteveral from setup
cron_job :some_method_to_run_as_cron, interval: 15.minutes

def some_method_to_run_as_cron
Expand All @@ -38,7 +38,7 @@ DelayedCron.setup do |config|
config.default_interval = 10.minutes

# array of methods to run at the above configured interval
config.cron_jobs = [ "Trunk::Location.count", "Ad.count" ]
config.cron_jobs = [ "SomeClass.expensive_task", "AnotherClass.other_expensive_task" ]

end
```

0 comments on commit e563f97

Please sign in to comment.