lib/csv2hash/parser/collection.rb in csv2hash-0.7.2 vs lib/csv2hash/parser/collection.rb in csv2hash-0.7.3
- old
+ new
@@ -22,12 +22,12 @@
definition.cells.each do |cell|
if cell.rules.fetch :mappable
x = cell.rules.fetch :position
if (nested = cell.rules.fetch :nested)
parsed_data[nested] ||= {}
- parsed_data[nested][cell.rules.fetch(:key)] = source_data[x]
+ parsed_data[nested][cell.rules.fetch(:key)] = treat(source_data[x])
else
- parsed_data[cell.rules.fetch(:key)] = source_data[x]
+ parsed_data[cell.rules.fetch(:key)] = treat(source_data[x])
end
end
end
end