Fix ruby 2.7 warning: The last argument is used as the keyword parameter (#32542, #31500).

Patch by Seiei Miyagi.


git-svn-id: http://svn.redmine.org/redmine/trunk@19454 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-01-23 15:42:50 +00:00
parent 0aaf07ac6d
commit ba7d4745e2
3 changed files with 6 additions and 6 deletions

View File

@@ -248,7 +248,7 @@ class Import < ActiveRecord::Base
wrapper = settings['wrapper'].to_s
csv_options[:quote_char] = wrapper if wrapper.size == 1
CSV.foreach(filepath, csv_options) do |row|
CSV.foreach(filepath, **csv_options) do |row|
yield row if block_given?
end
end