Skip to content

Commit c9484b0

Browse files
David Padillakarmi
David Padilla
authored andcommittedApr 8, 2015
[MODEL] Fixed incorrect example for setting the client
Closes: elastic#353
1 parent 72f3c13 commit c9484b0

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-model/lib/elasticsearch

1 file changed

+1
-1
lines changed
 

‎elasticsearch-model/lib/elasticsearch/model.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def client
145145
#
146146
# @example Configure (set) the client for all models
147147
#
148-
# Elasticsearch::Model.client Elasticsearch::Client.new host: 'http://localhost:9200', tracer: true
148+
# Elasticsearch::Model.client = Elasticsearch::Client.new host: 'http://localhost:9200', tracer: true
149149
# => #<Elasticsearch::Transport::Client:0x007f96a6dd0d80 @transport=... >
150150
#
151151
# @note You have to set the client before you call Elasticsearch methods on the model,

0 commit comments

Comments
 (0)
Please sign in to comment.