Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Use Tire::Model::Import:Strategy in rake task #936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tire/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down