module Voteable::InstanceMethods
Public Instance Methods
total_votes()
click to toggle source
# File lib/voteable/voteable.rb, line 9 def total_votes self.votes.where(votes: true).size - self.votes.where(votes: false).size end