From 37c692a153d8a354d44d9a2f0720ced75a0b2684 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Mon, 1 Jul 2024 13:43:31 +0300 Subject: [PATCH] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e53661..fe33705 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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 ```