Postgres compatiblity fix

This commit is contained in:
Petko Bordjukov 2017-10-23 00:33:41 +03:00
parent 82f44e69c3
commit 6dac654313
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class Public::ConferenceFeedbacksController < Public::ApplicationController
@conference = current_conference @conference = current_conference
@unrated_events = @conference.events @unrated_events = @conference.events
.joins(:proposition).approved .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) .where('feedbacks.session_id != ? OR feedbacks.id IS NULL', session.id)
@rated_events = @conference.events @rated_events = @conference.events