We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da2de4 commit 37c692aCopy full SHA for 37c692a
README.md
@@ -17,7 +17,7 @@ gem 'sequel-batches'
17
In order to use the feature you should enable the extension:
18
19
```ruby
20
-Sequel::DATABASES.first.extension :batches
+DB.extension(:batches)
21
```
22
23
After that the `#in_batches` method becomes available on dataset:
@@ -39,8 +39,8 @@ options = {
39
order: :desc,
40
}
41
42
-Event.where(type: "login").in_batches(options) do |ds|
43
- ds.delete
+Event.where(type: "login").in_batches(**options) do |dataset|
+ dataset.delete
44
end
45
46
0 commit comments