app/helpers/poll_recounts_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module PollRecountsHelper

  def total_recounts_by_booth(booth_assignment)
    booth_assignment.recounts.any? ? booth_assignment.recounts.to_a.sum(&:total_amount) : nil
  end

end