From 25cd427b654544621446da7df586891daa93ef02 Mon Sep 17 00:00:00 2001 From: Adrien Montfort Date: Sat, 12 Sep 2015 13:53:03 +0200 Subject: [PATCH] Fixed typos in import examples --- elasticsearch-model/lib/elasticsearch/model/importing.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch-model/lib/elasticsearch/model/importing.rb b/elasticsearch-model/lib/elasticsearch/model/importing.rb index 3bf96472f..7c42545d2 100644 --- a/elasticsearch-model/lib/elasticsearch/model/importing.rb +++ b/elasticsearch-model/lib/elasticsearch/model/importing.rb @@ -84,7 +84,7 @@ module ClassMethods # # class Article # # ... - # def enrich(batch) + # def self.enrich(batch) # batch.each do |item| # item.metadata = MyAPI.get_metadata(item.id) # end @@ -92,7 +92,7 @@ module ClassMethods # end # end # - # Article.import preprocess: enrich + # Article.import preprocess: :enrich # # @example Return an array of error elements instead of the number of errors, eg. # to try importing these records again