diff --git a/app/controllers/api/events_controller.rb b/app/controllers/api/events_controller.rb index 4ae04b2..527b30b 100644 --- a/app/controllers/api/events_controller.rb +++ b/app/controllers/api/events_controller.rb @@ -1,9 +1,9 @@ class Api::EventsController < Api::ApplicationController def index @conference = find_conference - @events = @conference.events.includes(:track) + @events = @conference.events.includes(:track, :event_type) - render json: @events, include: :track + render json: @events, include: [:track, :event_type] end private