diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-23 15:42:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-23 15:42:50 +0000 |
commit | ba7d4745e2a6489ddd33cdc827a2a095ab97fcb7 (patch) | |
tree | 3020b481610dc3537c2cdf05775d50c3dd8e2cb7 /app | |
parent | 0aaf07ac6d4cfbf0a81c3570668c8b4fa21dce38 (diff) | |
download | redmine-ba7d4745e2a6489ddd33cdc827a2a095ab97fcb7.tar.gz redmine-ba7d4745e2a6489ddd33cdc827a2a095ab97fcb7.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/import.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import.rb b/app/models/import.rb index 3244b13e2..61b3553f3 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -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 |