From 901a15f06497858d714f37e7a0591853b6aa5349 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 5 Oct 2015 15:29:22 +0300 Subject: [PATCH] Export info for the event type, too --- app/controllers/api/events_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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