Fixed views and Poll::Stats model to pass the specs

This commit is contained in:
iagirre
2017-10-17 16:07:44 +02:00
parent 6a292daf42
commit 0f73b787b2
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ class Poll
end
def total_participants_web_percentage
total_participants_web * 100 / total_participants
(total_participants) == 0 ? 0 : total_participants_web * 100 / total_participants
end
def total_participants_booth