Merge pull request #2075 from wairbut-m2c/iagirre-poll-stats

Iagirre poll stats
This commit is contained in:
Alberto García
2017-10-18 17:25:02 +02:00
committed by GitHub
12 changed files with 453 additions and 124 deletions

View File

@@ -25,6 +25,8 @@ class PollsController < ApplicationController
@commentable = @poll
@comment_tree = CommentTree.new(@commentable, params[:page], @current_order)
@stats = Poll::Stats.new(@poll).generate
end
end