adds physical_votes to vote counter

This commit is contained in:
rgarcia
2015-10-30 19:26:25 +01:00
parent a04ca01fc5
commit 5223ec664c
3 changed files with 9 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ class Proposal < ActiveRecord::Base
end
def total_votes
cached_votes_up
cached_votes_up + physical_votes
end
def editable?