Add conflicts summary to voting summary

This commit is contained in:
Petko Bordjukov 2016-10-13 08:12:22 +03:00
parent d17bc19b23
commit a8dd3ca040
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,10 @@ class Summary
@ranking ||= Ranking.new(talk_ids: talk_ids).ranking
end
def conflicts
@conflicts ||= ConflictsSummary.new(talk_ids: talk_ids).conflicts
end
private
def least_conflicts_for_single_talk

View File

@ -1 +1 @@
json.extract! @summary, :number_of_ballots, :most_conflicts, :least_conflicts, :ranking
json.extract! @summary, :number_of_ballots, :most_conflicts, :least_conflicts, :ranking, :conflicts