Closed
Description
Hey, let's say I have a Post
model which has_many :comments
. And I use it like this in the post index controller: render json: post, include: ['comments']
. That works fine and includes the comments, but let's say the Comment
model belongs_to :user
now. Writing render json: post, include: ['comments', 'user']
doesn't "sideload" the data, is there a solution to this?