Skip to content

Commit

Permalink
1 + n
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Mar 15, 2024
1 parent f89f0e2 commit d7e1ef8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/stories_controller.rb
Expand Up @@ -201,6 +201,7 @@ def show
render action: "show"
}
format.json {
@comments = @comments.includes(:parent_comments)
render json: @story.as_json(with_comments: @comments)
}
end
Expand Down

0 comments on commit d7e1ef8

Please sign in to comment.