Class: ActiveRecordImporter::BatchImporter
- Inherits:
-
Object
- Object
- ActiveRecordImporter::BatchImporter
- Defined in:
- lib/active_record_importer/batch_importer.rb
Instance Method Summary collapse
Instance Method Details
#process! ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/active_record_importer/batch_importer.rb', line 9 def process! @imported_count, @failed_count = 0, 0 data.each do |row_attrs| next if row_attrs.blank? process_row(row_attrs.symbolize_keys!) end set_import_count end |