Commit 24d1b52db07c0f2ca0f39b6084f65bfc445d1ccb

Authored by Andrew Kane
1 parent 6528ee4a

Fixed MongoDB import - closes #392

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/searchkick/index.rb
@@ -189,7 +189,7 @@ module Searchkick @@ -189,7 +189,7 @@ module Searchkick
189 scope.all.each do |item| 189 scope.all.each do |item|
190 items << item if item.should_index? 190 items << item if item.should_index?
191 if items.length == batch_size 191 if items.length == batch_size
192 - index.import items 192 + import items
193 items = [] 193 items = []
194 end 194 end
195 end 195 end