Sha256: e3eae473726478633b363049da8ee168c3decb274a433364cae96da06e909df5
Contents?: true
Size: 521 Bytes
Versions: 13
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true require "csv" module Decidim module Admin module Import module Readers # Imports any exported CSV file to local objects. It transforms the # import data using the creator into the final target objects. class CSV < Base MIME_TYPE = "text/csv" def read_rows ::CSV.read(file, col_sep: ";").each_with_index do |row, index| yield row, index end end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems