Skip to content

options ain't passed to FasterCSV constructor #1

@masterkain

Description

@masterkain

in the method read_attributes_from_file we have @parser_options blank given this code:

results = CsvMapper.import("#{Rails.root.to_s}/lib/imported.csv") do
  delimited_by ";"
  map_to User
  after_row lambda{ |row, user| user.save } 
  read_attributes_from_file
end

I expect at least the :col_sep options to be set. Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions