File tree 3 files changed +5
-27
lines changed
3 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- require 'portable_csv '
3
+ require 'csv '
4
4
require 'natcmp'
5
5
6
6
class ParticipantsController < ApplicationController
@@ -162,7 +162,7 @@ def index_json_data
162
162
end
163
163
164
164
def index_csv
165
- PortableCSV . generate ( force_quotes : true ) do |csv |
165
+ CSV . generate ( force_quotes : true ) do |csv |
166
166
title_row = ( @ordinary_fields + @extra_fields . map ( &:name ) ) . select { |f | @visible_columns . include? ( f ) } . map ( &:humanize )
167
167
168
168
if @group_completion
Original file line number Diff line number Diff line change 1
- <% require 'portable_csv' %>
2
- <%= PortableCSV.generate(:force_quotes => true) do |csv|
1
+ <% require 'csv' %>
2
+
3
+ <%= CSV.generate(:force_quotes => true) do |csv|
3
4
arr = []
4
5
arr << :id if can?(:teach, @course)
5
6
arr += @user_fields.map(&:label) if @user_fields
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments