Skip to content

Commit 9be2afb

Browse files
committed
Remove portable_csv
1 parent 145cd0b commit 9be2afb

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

app/controllers/participants_controller.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
require 'portable_csv'
3+
require 'csv'
44
require 'natcmp'
55

66
class ParticipantsController < ApplicationController
@@ -162,7 +162,7 @@ def index_json_data
162162
end
163163

164164
def index_csv
165-
PortableCSV.generate(force_quotes: true) do |csv|
165+
CSV.generate(force_quotes: true) do |csv|
166166
title_row = (@ordinary_fields + @extra_fields.map(&:name)).select { |f| @visible_columns.include?(f) }.map(&:humanize)
167167

168168
if @group_completion

app/views/points/index.csv.erb

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<% require 'portable_csv' %>
2-
<%= PortableCSV.generate(:force_quotes => true) do |csv|
1+
<% require 'csv' %>
2+
3+
<%= CSV.generate(:force_quotes => true) do |csv|
34
arr = []
45
arr << :id if can?(:teach, @course)
56
arr += @user_fields.map(&:label) if @user_fields

lib/portable_csv.rb

-23
This file was deleted.

0 commit comments

Comments
 (0)