lib/i2x/csvdetector.rb in i2x-0.0.5 vs lib/i2x/csvdetector.rb in i2x-0.0.6

- old
+ new

@@ -33,11 +33,13 @@ end begin @cache = JSON.parse(@response, {:symbolize_names => true}) - @templates = @cache[:templates] + @cache[:templates].each do |t| + @templates.push t + end # The actual processing # if @cache[:cache][:status] == 100 then # add row data to payload from selectors (key => key, value => column name) @@ -53,9 +55,10 @@ end rescue Exception => e p "[i2x][CSVDetector] processing error: #{e.inspect}" end + @cache[:templates] end end end end \ No newline at end of file