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