class Decidim::Admin::Import::Readers::CSV
Imports any exported CSV
file to local objects. It transforms the import data using the creator into the final target objects.
Constants
- MIME_TYPE
Public Instance Methods
read_rows() { |row, index| ... }
click to toggle source
# File lib/decidim/admin/import/readers/csv.rb, line 14 def read_rows ::CSV.read(file, col_sep: ";").each_with_index do |row, index| yield row, index end end