Skip to content

Commit cdf1903

Browse files
authored
Minor README fixes (#50)
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.
1 parent 446dfd9 commit cdf1903

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Initialize a client with:
1717
require "riverqueue"
1818
require "riverqueue-activerecord"
1919

20-
DB = Sequel.connect("postgres://...")
2120
client = River::Client.new(River::Driver::ActiveRecord.new)
2221
```
2322

@@ -33,7 +32,7 @@ class SortArgs
3332

3433
def kind = "sort"
3534

36-
def to_json = JSON.dump({strings: strings})
35+
def to_json = JSON.dump({ strings: strings })
3736
end
3837

3938
insert_res = client.insert(SortArgs.new(strings: ["whale", "tiger", "bear"]))
@@ -126,7 +125,7 @@ end
126125

127126
```ruby
128127
insert_res = client.insert(River::JobArgsHash.new("hash_kind", {
129-
job_num: 1
128+
job_num: 1
130129
}))
131130
```
132131

0 commit comments

Comments
 (0)