8 lines
180 B
Ruby
8 lines
180 B
Ruby
module PollRecountsHelper
|
|
|
|
def total_recounts_by_booth(booth_assignment)
|
|
booth_assignment.recounts.any? ? booth_assignment.recounts.to_a.sum(&:total_amount) : nil
|
|
end
|
|
|
|
end
|