Skip to content

Commit 0d5327a

Browse files
suchkarmi
authored andcommitted
[MODEL] Fixed typos in examples
Closes elastic#468
1 parent 92f0148 commit 0d5327a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-model/lib/elasticsearch/model/importing.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ module ClassMethods
8484
#
8585
# class Article
8686
# # ...
87-
# def enrich(batch)
87+
# def self.enrich(batch)
8888
# batch.each do |item|
8989
# item.metadata = MyAPI.get_metadata(item.id)
9090
# end
9191
# batch
9292
# end
9393
# end
9494
#
95-
# Article.import preprocess: enrich
95+
# Article.import preprocess: :enrich
9696
#
9797
# @example Return an array of error elements instead of the number of errors, eg.
9898
# to try importing these records again

0 commit comments

Comments
 (0)