Remove duplication to calculate percentage

This commit is contained in:
Javi Martín
2018-12-10 16:33:04 +01:00
parent 188278296c
commit ccaa2e1a77
4 changed files with 7 additions and 11 deletions

View File

@@ -1,6 +1,5 @@
class Poll::Stats
include Statisticable
include StatsHelper
alias_method :poll, :resource
def self.stats_methods