Created
January 22, 2016 19:38
-
-
Save excid3/5be09dc5f56daedf01b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# winners.each { |stop, list| | |
# CSV.open("#{Rails.root}/lib/assets/group_#{stop}.csv", "wb") do |csv| | |
# list.each { |user| | |
# csv << [user.email, user.referrals.count] | |
# } | |
# end | |
# } | |
# change the above to something like this | |
winners.each { |stop, list| | |
puts "WINNERS FOR #{stop} \n" | |
list.each { |user| | |
puts "#{user.email}, #{user.referrals.count}" | |
} | |
puts | |
puts | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment