[refactor] Change to_json to as_json
This commit is contained in:
parent
010f72d42f
commit
7b3d97fdbb
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class SchedulesController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue