Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 123 Bytes
require 'fastercsv'
FasterCSV.open("file.csv", "w") do |csv|
User.all.each do |object|
csv << object.email
end
end