diff options
Diffstat (limited to 'app/models/simple_importer.rb')
| -rw-r--r-- | app/models/simple_importer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/simple_importer.rb b/app/models/simple_importer.rb index e23b3e524..6f0b8d7a8 100644 --- a/app/models/simple_importer.rb +++ b/app/models/simple_importer.rb @@ -1,3 +1,4 @@ +# coding: utf-8 class SimpleImporter < SimpleInterface def resolve col_name, value, &block val = block.call(value) @@ -40,7 +41,7 @@ class SimpleImporter < SimpleInterface end def dump_csv_from_context - dir = context[:output_dir] || "log/importers" + dir = context[:logs_output_dir] || "log/importers" filepath = File.join dir, "#{self.configuration_name}_#{Time.now.strftime "%y%m%d%H%M"}.csv" # for some reason, context[:csv].to_csv does not work CSV.open(filepath, 'w') do |csv| |
