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