diff --git a/lib/tire/tasks.rb b/lib/tire/tasks.rb index 3139f0cd..dd8d4b67 100644 --- a/lib/tire/tasks.rb +++ b/lib/tire/tasks.rb @@ -46,7 +46,7 @@ def import_model(index, klass, params) unless progress_bar(klass) puts "[IMPORT] Importing '#{klass.to_s}'" end - klass.tire.import(params) do |documents| + Tire::Model::Import::Strategy::from_class(klass, params).import do |documents| progress_bar(klass).inc documents.size if progress_bar(klass) documents end