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