Skip to content
This repository has been archived by the owner on Dec 26, 2017. It is now read-only.

Commit

Permalink
CSV does not like nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Davis committed Feb 4, 2011
1 parent e395f5d commit a985030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/csv.rake
Expand Up @@ -18,7 +18,7 @@ namespace :export do
csv << ['Report Number', 'Occurred', 'Reported', 'Address', 'Lat', 'Lng', 'Crime Type', 'Crime Category', 'Report URL']

PoliceReport.all.each do |p|
csv << [p.report_number, p.occurdate, p.reporteddate, p.address, p.lat, p.lng, p.crime_type, p.category, p.report_url]
csv << [p.report_number, p.occurdate, p.reporteddate, p.address || '', p.lat, p.lng, p.crime_type, p.category, p.report_url]
end
end
end
Expand Down

0 comments on commit a985030

Please sign in to comment.