Recurisvely include all related objects
This commit is contained in:
parent
edd2649be0
commit
5343fcbd20
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue