lib/pupa/models/vote_event.rb
def add_count(option, value, group: nil)
      data = {option: option, value: value}
      if group
        data[:group] = group
      end
      if option.present? && value.present?
        @counts << data
      end
    end
def add_count(option, value, group: nil)
      data = {option: option, value: value}
      if group
        data[:group] = group
      end
      if option.present? && value.present?
        @counts << data
      end
    end
Adds a count.

 @param [String] option an option in a vote event
 @param [String] value the number of votes for an option
 @param [String] group a group of voters