From 6dac654313fe1bbfdd9790a1cf76055b908c0e09 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 23 Oct 2017 00:33:41 +0300 Subject: [PATCH] Postgres compatiblity fix --- app/controllers/public/conference_feedbacks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/public/conference_feedbacks_controller.rb b/app/controllers/public/conference_feedbacks_controller.rb index 00d3ddd..48a2bef 100644 --- a/app/controllers/public/conference_feedbacks_controller.rb +++ b/app/controllers/public/conference_feedbacks_controller.rb @@ -3,7 +3,7 @@ class Public::ConferenceFeedbacksController < Public::ApplicationController @conference = current_conference @unrated_events = @conference.events .joins(:proposition).approved - .joins('LEFT JOIN feedbacks ON feedbacks.feedback_receiving_id = events.id AND feedbacks.feedback_receiving_type = "Event"') + .joins('LEFT JOIN feedbacks ON feedbacks.feedback_receiving_id = events.id AND feedbacks.feedback_receiving_type = \'Event\'') .where('feedbacks.session_id != ? OR feedbacks.id IS NULL', session.id) @rated_events = @conference.events