diff options
| author | Marc Florisson | 2013-12-20 12:15:41 +0100 |
|---|---|---|
| committer | Marc Florisson | 2013-12-20 12:15:41 +0100 |
| commit | ce7d0450c34b2b4d981dc7c70a235e135a20bde7 (patch) | |
| tree | c982f997f03c4592e76998a6ebd8d841dce52674 /lib | |
| parent | b3d20fd06cbfcf1ac01897a209431e668c40955b (diff) | |
| download | chouette-core-ce7d0450c34b2b4d981dc7c70a235e135a20bde7.tar.bz2 | |
fix, make delayed import explicit
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tasks/demo.rake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/demo.rake b/lib/tasks/demo.rake index fe26ca9d1..7d964b894 100644 --- a/lib/tasks/demo.rake +++ b/lib/tasks/demo.rake @@ -14,7 +14,9 @@ namespace :demo do referential = organisation.referentials.create( :name => "Tatrobus", :slug => "tatrobus", :prefix => "TAT") resource = Rack::Test::UploadedFile.new( Rails.application.config.demo_data, 'application/zip', false) - import_instance = referential.imports.create( :resources => resource, :referential_id => referential.id, :background => false) + import_instance = referential.imports.create( :resources => resource, :referential_id => referential.id) + import_instance.save_resources + import_instance.import puts "Restore demo environment complete" end end |
