Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jdguzman committed Aug 2, 2016
1 parent c055f53 commit 2874f26
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ ThisIsTheClass:
Only classes that are descended from `ActiveJob::Base` will be wrapped

### Job Classes With Named Args

If you have a job class that uses named arguments you can specify that. `args`
should be a hash nested in the array and you need to add the named_args key.

```yaml
simple_job:
every: "30s"
queue: "simple"
class: "SimpleJob"
args:
- foo: 1
bar: 2
description: "It's a simple job."
named_args: true
```

## Credits

- Written by [@JustinAiken](https://www.github.com/JustinAiken)
Expand Down

0 comments on commit 2874f26

Please sign in to comment.