lib/pose/models/pose_word.rb in pose-1.3.3 vs lib/pose/models/pose_word.rb in pose-1.3.4
- old
+ new
@@ -19,10 +19,10 @@
# NOTE (SZ): do not use find_each uses batch_size == 100.
# Use find_in_batches instead.
#
PoseWord.select(:id).find_in_batches.each(include: [:pose_assignments], batch_size: 5000) do |pose_word|
pose_word.delete if pose_word.pose_assignments.size == 0
- progress_bar.inc if progress_bar
+ progress_bar.increment if progress_bar
end
end
end
end