Skip to content

options ain't passed to FasterCSV constructor #1

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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