diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-10-09 10:35:36 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-10-09 10:35:36 +0200 |
commit | 96234eff3ea35c528eea524eb39afa8624177fd8 (patch) | |
tree | 007bfe46ae050d35b401a3ccd5b53f113d5e9fc9 | |
parent | 42921e0c4e12836deb217680ce26603db15628d2 (diff) |
Replacing nil with blank
-rw-r--r-- | application.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 92f5c30..b8243d2 100644 --- a/application.rb +++ b/application.rb @@ -23,7 +23,9 @@ module OpenTox helpers do def from_csv(csv) - from_table CSV.parse(csv) + table = CSV.parse(csv) + table.collect! { |row| row.collect! { |val| val.nil? ? "" : val } } + from_table table end def from_spreadsheet spreadsheet |