From a6aefc13d5c084dd64c1791fb91a21b4610e380e Mon Sep 17 00:00:00 2001 From: Travis Reeder Date: Thu, 11 Aug 2011 13:01:16 -0700 Subject: [PATCH] Updated readme. --- README.markdown | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index cfbb633..6f8deae 100644 --- a/README.markdown +++ b/README.markdown @@ -214,7 +214,8 @@ Then before you job is run, SimpleWorker will establish the ActiveRecord connect Including/Merging other Ruby Classes ------------------------------------ -If you are using the Rails setup above, you can probably skip this as your models will automatically be merged. +If you need to inclue other classes in for your worker to use (which is very common), then you'll +want to use the merge functions. For example: class AvgWorker < SimpleWorker::Base @@ -272,6 +273,15 @@ This allows you to use any gem you'd like with SimpleWorker. This uses the same [Check here for more info on merge_gem](http://support.simpleworker.com/kb/working-with-simpleworker/merging-gems-into-your-worker). +Global Merging +-------------- + +If you want to merge items for all of your workers, you can do merges in your SimpleWorker.configure block: + + config.merge 'my file' + config.merge_gem 'httparty' + + Configuration Options ---------------------