clean(code): stick to usage of present?/empty? instead of count zero etc
This commit is contained in:
parent
8f1478b00f
commit
91ef618a42
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class BatchOperation < ApplicationRecord
|
|||
|
||||
# beware, must be reloaded first
|
||||
def called_for_last_time?(dossier_to_ignore)
|
||||
dossiers.where.not(id: dossier_to_ignore.id).count.zero?
|
||||
dossiers.where.not(id: dossier_to_ignore.id).empty?
|
||||
end
|
||||
|
||||
def total_count
|
||||
|
|
Loading…
Reference in a new issue