class Tire::Model::Import::Strategy::ActiveRecord

Public Instance Methods

import(&block) click to toggle source
# File lib/tire/model/import.rb, line 58
def import &block
  klass.find_in_batches(:batch_size => options[:per_page]) do |batch|
    index.import batch, options, &block
  end
  self
end