Fix missing stages and teams in tournaments show
This commit is contained in:
parent
d1cbe8a354
commit
dd520089ec
|
|
@ -29,7 +29,7 @@ class TournamentsController < ApplicationController
|
||||||
if show_params.fetch(:simple, 'false') == 'true'
|
if show_params.fetch(:simple, 'false') == 'true'
|
||||||
render json: @tournament, serializer: SimpleTournamentSerializer
|
render json: @tournament, serializer: SimpleTournamentSerializer
|
||||||
else
|
else
|
||||||
render json: @tournament.as_json(methods: :teams_advancing_from_group_stage)
|
render json: @tournament, include: '**'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue