Skip to content

Commit 7e36d7b

Browse files
authored
Add require statements to client initialization example (#21)
Make the client initialization example more useful by adding `require` statements to help users see the entirety of the code they need to write to make it work. Also change Sequel to ActiveRecord to match a change that was made to the homepage docs.
1 parent afe184c commit 7e36d7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ gem "riverqueue-sequel"
1414
Initialize a client with:
1515

1616
```ruby
17+
require "riverqueue"
18+
require "riverqueue-activerecord"
19+
1720
DB = Sequel.connect("postgres://...")
18-
client = River::Client.new(River::Driver::Sequel.new(DB))
21+
client = River::Client.new(River::Driver::ActiveRecord.new)
1922
```
2023

2124
Define a job and insert it:

0 commit comments

Comments
 (0)