helpers do
  def get_score(voteable)
    votes = voteable.votes
    votes.reduce(0) do  |sum, vote|
      sum += 1 if vote.value
      sum -= 1 if !vote.value
      sum
    end
  end

  def get_type(voteable)

  end
end

helpers do
  def get_score(voteable)
    votes = voteable.votes
    votes.reduce(0) do  |sum, vote|
      sum += 1 if vote.value
      sum -= 1 if !vote.value
      sum
    end
  end

  def get_type(voteable)
    voteable.class.name
  end
end

Define get_type method for voteable
Define get_type method for voteable
