[feat] happening_now json endpoint returns event embedded in event_schedule

This commit is contained in:
Jimmy 2021-03-20 13:34:14 +08:00 committed by CactusPuppy
parent 39d4960b69
commit 0e460e76ec
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -75,7 +75,7 @@ class SchedulesController < ApplicationController
respond_to do |format|
format.html
format.json { render json: @events_schedules.to_json }
format.json { render json: @events_schedules.as_json(:include => :event) }
end
end