Export info for the event type, too

This commit is contained in:
Petko Bordjukov 2015-10-05 15:29:22 +03:00
parent 2bc8acac61
commit 901a15f064
1 changed files with 2 additions and 2 deletions

View File

@ -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