From 16f2d016fc9a4ce88c587ced29c70d358ebe27dd Mon Sep 17 00:00:00 2001 From: Brandur Date: Mon, 20 Oct 2025 20:08:33 +0900 Subject: [PATCH] Minor README fixes Remove a bad copy/pasta line for the ActiveRecord example, use spaces around a hash's contents, and use two spaces instead of four for the `JobArgsHash` example. --- docs/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index c063482..9734d78 100644 --- a/docs/README.md +++ b/docs/README.md @@ -17,7 +17,6 @@ Initialize a client with: require "riverqueue" require "riverqueue-activerecord" -DB = Sequel.connect("postgres://...") client = River::Client.new(River::Driver::ActiveRecord.new) ``` @@ -33,7 +32,7 @@ class SortArgs def kind = "sort" - def to_json = JSON.dump({strings: strings}) + def to_json = JSON.dump({ strings: strings }) end insert_res = client.insert(SortArgs.new(strings: ["whale", "tiger", "bear"])) @@ -126,7 +125,7 @@ end ```ruby insert_res = client.insert(River::JobArgsHash.new("hash_kind", { - job_num: 1 + job_num: 1 })) ```