aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/import_task.rb
diff options
context:
space:
mode:
authorLuc Donnet2015-05-11 16:14:13 +0200
committerLuc Donnet2015-05-11 16:14:13 +0200
commiteb9fc261f0becd37e7c970770c29fb39e05bad7d (patch)
tree6651e614a11174b0fe91863052b0199e37c2c1b4 /app/models/import_task.rb
parentaed720a30e4d1375de566ed3c093cf0664614f9c (diff)
downloadchouette-core-eb9fc261f0becd37e7c970770c29fb39e05bad7d.tar.bz2
Fix import task for gtfs Refs #0035519
Diffstat (limited to 'app/models/import_task.rb')
-rw-r--r--app/models/import_task.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/import_task.rb b/app/models/import_task.rb
index 1a50a021b..795a964dc 100644
--- a/app/models/import_task.rb
+++ b/app/models/import_task.rb
@@ -95,6 +95,8 @@ class ImportTask
def save_resources
FileUtils.mkdir_p root
+ puts resources.inspect
+ puts saved_resources_path.inspect
FileUtils.cp resources.path, saved_resources_path
end
@@ -111,7 +113,7 @@ class ImportTask
end
def saved_resources_path
- "#{root}/#{Time.now.to_i}#{file_extname}"
+ @saved_resources_path ||= "#{root}/#{Time.now.to_i}#{file_extname}"
end
end