config/initializers/importer.rb in kuppayam-0.2.7.pre.materialize vs config/initializers/importer.rb in kuppayam-0.2.8.pre.materialize

- old
+ new

@@ -322,12 +322,11 @@ # puts lines # end # end # File.open(csv_path) do |file| - # binding.pry - # headers = file.first + # headers = file.first # file.lazy.each_slice(batch_size) do |lines| # csv_rows = CSV.parse(lines.join, write_headers: true, headers: headers) # csv_rows.each do |row| # error_object = save_row_data(row) # errors << error_object if error_object @@ -337,11 +336,9 @@ # end # end # rows = CSV.new(File.open(csv_path,'r'), headers: true, header_converters: :symbol).lazy.select do |row| # end - - # binding.pry # rows.each do |row| # error_object = save_row_data(row) # errors << error_object if error_object \ No newline at end of file