Skip to content

Commit

Permalink
Add Namespaced Workers section to README
Browse files Browse the repository at this point in the history
  • Loading branch information
tombenner committed Jun 22, 2014
1 parent dd4bc21 commit f97aff4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ Superworker.create(:MySuperworker, :user_id, :comment_id) do
end
```

### Namespaced Workers

To refer to a namespaced worker (e.g. `MyModule::Worker1`), replace the two colons with two underscores:

```ruby
Superworker.create(:MySuperworker, :user_id, :comment_id) do
MyModule__Worker1 :user_id, :comment_id
end
```

### Options

#### Insert Method
Expand Down

0 comments on commit f97aff4

Please sign in to comment.