[refactor] Change to_json to as_json

This commit is contained in:
Jimmy 2021-03-31 16:08:44 +08:00 committed by CactusPuppy
parent 4199530c77
commit 566b057e3c
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(include: :event) }
format.json { render json: @events_schedules.as_json(root: false, include: :event) }
end
end