Display only speakers with scheduled events

This commit is contained in:
Petko Bordjukov 2015-10-18 19:47:11 +03:00
parent 96eeb075a2
commit eeb7f4ef61
1 changed files with 1 additions and 1 deletions

View File

@ -3,6 +3,6 @@ class Api::SpeakersController < Api::ApplicationController
before_filter :require_current_conference!
def index
@speakers = PersonalProfile.joins(user: [:events]).where(conference: current_conference)
@speakers = PersonalProfile.joins(user: [{events: [:slot] }]).where(conference: current_conference).uniq
end
end