add update_category as option
This commit is contained in:
parent
14540d4cf9
commit
7fb9153209
5 changed files with 54 additions and 4 deletions
|
|
@ -66,7 +66,7 @@ module FoodsoftArticleImport
|
|||
opts[:csv_options][:encoding] = encoding if encoding
|
||||
opts[:csv_options][:col_sep] = col_sep if col_sep
|
||||
opts[:csv_options][:liberal_parsing] = true if liberal_parsing
|
||||
opts[:extension] = File.extname(File.basename(@@filename)) if @@filename
|
||||
opts[:extension] = File.extname(File.basename(file)) if file
|
||||
begin
|
||||
Roo::Spreadsheet.open(file, **opts)
|
||||
rescue StandardError => e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue