Module: Votabulary::InstanceMethods
- Defined in:
- lib/votabulary.rb
Instance Method Summary collapse
Instance Method Details
#total_votes ⇒ Object
11 12 13 |
# File 'lib/votabulary.rb', line 11 def total_votes self.votes.where(vote: true).size - self.votes.where(vote: false).size end |