Export info for the event type, too
This commit is contained in:
parent
2bc8acac61
commit
901a15f064
|
@ -1,9 +1,9 @@
|
||||||
class Api::EventsController < Api::ApplicationController
|
class Api::EventsController < Api::ApplicationController
|
||||||
def index
|
def index
|
||||||
@conference = find_conference
|
@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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue