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