Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Jul 1, 2024
1 parent 0da2de4 commit 37c692a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gem 'sequel-batches'
In order to use the feature you should enable the extension:

```ruby
Sequel::DATABASES.first.extension :batches
DB.extension(:batches)
```

After that the `#in_batches` method becomes available on dataset:
Expand All @@ -39,8 +39,8 @@ options = {
order: :desc,
}

Event.where(type: "login").in_batches(options) do |ds|
ds.delete
Event.where(type: "login").in_batches(**options) do |dataset|
dataset.delete
end
```

Expand Down

0 comments on commit 37c692a

Please sign in to comment.