From d56dddb90a20bc5141e9d941fa78df0e6263c5ba Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 11 Oct 2016 03:23:24 +0300 Subject: [PATCH] Fix an incredibly stupid bug in vote result fetching --- app/models/conference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 666bd2e..4abed90 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -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