Fix an incredibly stupid bug in vote result fetching

This commit is contained in:
Petko Bordjukov 2016-10-11 03:23:24 +03:00
parent 4161e796ab
commit d56dddb90a
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class Conference < ActiveRecord::Base
def remote_summary_data
@remote_summary_data ||= JSON.parse(connection.get do |request|
request.body = {summary: {talk_ids: Conference.last.events.pluck(:id)}}.to_json
request.body = {summary: {talk_ids: conference.events.pluck(:id)}}.to_json
end.body)
end