DEV: properly require csv dependency

csv dependency is not default loaded, explicitly ask for it when we start
parsing csv files.
This commit is contained in:
Sam Saffron 2019-10-02 15:07:37 +10:00
parent dbe0111822
commit 34813b643d
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ class InvitesController < ApplicationController
end
def upload_csv
require 'csv'
guardian.ensure_can_bulk_invite_to_forum!(current_user)
hijack do