Object
# File lib/tire/model/import.rb, line 84 def import &block current = 0 page = 1 while current < klass.count items = klass.page(page).per(options[:per_page]) index.import items, options, &block current = current + items.size page += 1 end self end