Skip to content

Commit

Permalink
Update README.md (#1152)
Browse files Browse the repository at this point in the history
* Update README.md

Fix Batch description. `add` is not a GoodJob::Batch class method

* Update README.md

Remove trailing white space
  • Loading branch information
LucasKendi authored Nov 21, 2023
1 parent 90ea269 commit 7534b70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,10 @@ Batches track a set of jobs, and enqueue an optional callback job when all of th
```ruby
batch = GoodJob::Batch.new
batch = GoodJob::Batch.add do
batch.add do
10.times { MyJob.perform_later }
end
batch.add do
10.times { OtherJob.perform_later }
end
Expand Down

0 comments on commit 7534b70

Please sign in to comment.