diff --git a/app/controllers/api/events_controller.rb b/app/controllers/api/events_controller.rb index deaee7d..ac7f0a8 100644 --- a/app/controllers/api/events_controller.rb +++ b/app/controllers/api/events_controller.rb @@ -8,7 +8,7 @@ class Api::EventsController < Api::ApplicationController end def halfnarp_friendly - @events = current_conference.events.includes(:track, :event_type) + @events = current_conference.events.joins(:proposition).includes(:track, :event_type).where.not(propositions: {status: :rejected}) render json: @events, include: [:track, :event_type] end end