def to_csv(objects = nil)
      seed_records(objects) unless objects.nil?
      CSV.generate do |csv|
        csv << header
        records.each do |record|
          csv << record
        end
      end
    end
def to_csv(objects = nil)
      seed_records(objects) unless objects.nil?
      CSV.generate do |csv|
        csv << header
        records.each do |record|
          csv << record
        end
      end
    end
Returns a csv string with the export data