1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 08:21:14 +00:00

remove spaces inside {} of app/models/import.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20406 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-17 12:40:55 +00:00
parent a16ae9048c
commit 5b4a8087ba

View File

@ -68,7 +68,7 @@ class Import < ActiveRecord::Base
if file_exists?
begin
content = File.read(filepath, 256)
separator = [',', ';'].sort_by {|sep| content.count(sep) }.last
separator = [',', ';'].sort_by {|sep| content.count(sep)}.last
rescue => e
end
end