[refactor] Change to_json to as_json
This commit is contained in:
parent
4199530c77
commit
566b057e3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue