remove use csv instead of fastercsv

This commit is contained in:
Fabián Rodríguez 2013-02-12 14:41:09 -02:00 committed by Jonne Haß
parent ac866a321d
commit de112300ca
2 changed files with 4 additions and 15 deletions

View file

@ -197,14 +197,9 @@ SQL
# ---------------- HELPER METHODS -------------------------
def self.load_waiting_list_csv(filename)
require 'csv'
csv = filename
if RUBY_VERSION.include? "1.8"
require 'fastercsv'
people = FasterCSV.read(csv)
else
require 'csv'
people = CSV.read(csv)
end
people = CSV.read(csv)
people
end

View file

@ -4,14 +4,8 @@
module RakeHelpers
def process_emails(csv, num_to_process, offset, test=true)
if RUBY_VERSION.include? "1.8"
require 'fastercsv'
backers = FasterCSV.read(csv)
else
require 'csv'
backers = CSV.read(csv)
end
require 'csv'
backers = CSV.read(csv)
puts "DRY RUN" if test
churn_through = 0
num_to_process.times do |n|