Skip to content

Commit

Permalink
Remove portable_csv
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Aug 6, 2024
1 parent 145cd0b commit 9be2afb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 27 deletions.
4 changes: 2 additions & 2 deletions app/controllers/participants_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require 'portable_csv'
require 'csv'
require 'natcmp'

class ParticipantsController < ApplicationController
Expand Down Expand Up @@ -162,7 +162,7 @@ def index_json_data
end

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

if @group_completion
Expand Down
5 changes: 3 additions & 2 deletions app/views/points/index.csv.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<% require 'portable_csv' %>
<%= PortableCSV.generate(:force_quotes => true) do |csv|
<% require 'csv' %>

<%= CSV.generate(:force_quotes => true) do |csv|
arr = []
arr << :id if can?(:teach, @course)
arr += @user_fields.map(&:label) if @user_fields
Expand Down
23 changes: 0 additions & 23 deletions lib/portable_csv.rb

This file was deleted.

0 comments on commit 9be2afb

Please sign in to comment.