Class: Tire::Model::Import::Strategy::ActiveRecord
- Inherits:
-
Object
- Object
- Tire::Model::Import::Strategy::ActiveRecord
- Includes:
- Base
- Defined in:
- lib/tire/model/import.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#import(&block) ⇒ Object
58 59 60 61 62 63 |
# File 'lib/tire/model/import.rb', line 58 def import &block klass.find_in_batches(:batch_size => [:per_page]) do |batch| index.import batch, , &block end self end |