2015-10-08 02:34:19 +03:00
|
|
|
class Api::SpeakersController < Api::ApplicationController
|
|
|
|
include ::CurrentConferenceAssigning
|
|
|
|
before_filter :require_current_conference!
|
|
|
|
|
|
|
|
def index
|
2016-10-17 22:36:32 +03:00
|
|
|
@speakers = PersonalProfile.joins(user: {participations: {event: :proposition}}).where(events: {id: current_conference.approved_events.pluck(:id)}).distinct
|
2015-10-08 02:34:19 +03:00
|
|
|
end
|
|
|
|
end
|