From 5343fcbd20833bcba7d222f6491df2be9f7e05e3 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 6 Nov 2019 11:38:24 +0100 Subject: [PATCH] Recurisvely include all related objects --- app/controllers/matches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/matches_controller.rb b/app/controllers/matches_controller.rb index 7c0c012..cfa430b 100644 --- a/app/controllers/matches_controller.rb +++ b/app/controllers/matches_controller.rb @@ -15,7 +15,7 @@ class MatchesController < ApplicationController m.state == match_params['state'] end end - render json: matches, each_serializer: MatchSerializer + render json: matches, each_serializer: MatchSerializer, include: '**' end # GET /matches/1