Recurisvely include all related objects

This commit is contained in:
Thor77 2019-11-06 11:38:24 +01:00
parent edd2649be0
commit 5343fcbd20
1 changed files with 1 additions and 1 deletions

View File

@ -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