Skip to content

Commit a15eae5

Browse files
committedNov 20, 2014
Fix example on how to set up a specific client for a specific model (ActiveRecord Pattern)
1 parent d6e534c commit a15eae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎elasticsearch-persistence/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ Elasticsearch::Persistence.client = Elasticsearch::Client.new log: true
616616
To set up a specific client for a specific model:
617617

618618
```ruby
619-
Article.client = Elasticsearch::Client.new host: 'api.server.org'
619+
Article.gateway.client = Elasticsearch::Client.new host: 'api.server.org'
620620
```
621621

622622
You might want to do this during you application bootstrap process, e.g. in a Rails initializer.

0 commit comments

Comments
 (0)