Skip to content

Commit

Permalink
Update call of CSV to fix ruby 2.7 kwaarg deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benbaumann95 committed Sep 23, 2020
1 parent 32c7bfb commit 6323f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/publication_delay_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.call(*args)
CSV_HEADERS = ["URL", "Document Type", "Scheduled Time", "Delay (seconds)"].freeze

def write_csv
CSV(file, headers: CSV_HEADERS, write_headers: true) do |csv|
CSV.instance(file, headers: CSV_HEADERS, write_headers: true) do |csv|
delayed_content_items.each do |content_item|
csv << csv_row(content_item)
end
Expand Down

0 comments on commit 6323f51

Please sign in to comment.