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

rake task ':import' fails when model groups in default scope #381

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/tire/tasks.rb
Expand Up @@ -61,7 +61,7 @@ def elapsed_to_human(elapsed)
STDOUT.sync = true
puts "[IMPORT] Starting import for the '#{ENV['CLASS']}' class"
tty_cols = 80
total = klass.count rescue nil
total = klass.all.count rescue nil
offset = (total.to_s.size*2)+8
done = 0

Expand Down