@@ -51,7 +51,7 class Import < ActiveRecord::Base | |||
|
51 | 51 | separator = lu(user, :general_csv_separator) |
|
52 | 52 | if file_exists? |
|
53 | 53 | begin |
|
54 |
content = File.read(filepath, 256 |
|
|
54 | content = File.read(filepath, 256) | |
|
55 | 55 | separator = [',', ';'].sort_by {|sep| content.count(sep) }.last |
|
56 | 56 | rescue Exception => e |
|
57 | 57 | end |
General Comments 0
You need to be logged in to leave comments.
Login now