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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue